aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSteve Glendinning <steve.glendinning@smsc.com>2009-01-07 03:22:24 -0500
committerPaul Mundt <lethal@linux-sh.org>2009-01-21 03:42:34 -0500
commit8ed3592e567db7344b2c7353667e0d281cd13471 (patch)
tree4e86c8c8f99fff5d0ecaf7c0d7198fc350697ab6 /arch
parent02da916ae69889f72ca026d759fe521094ba7065 (diff)
sh: convert rsk7203 to use smsc911x.
Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/boards/mach-rsk/devices-rsk7203.c24
-rw-r--r--arch/sh/configs/rsk7203_defconfig21
2 files changed, 32 insertions, 13 deletions
diff --git a/arch/sh/boards/mach-rsk/devices-rsk7203.c b/arch/sh/boards/mach-rsk/devices-rsk7203.c
index 73f743b9be8d..d8a65ea91665 100644
--- a/arch/sh/boards/mach-rsk/devices-rsk7203.c
+++ b/arch/sh/boards/mach-rsk/devices-rsk7203.c
@@ -15,19 +15,21 @@
15#include <linux/mtd/partitions.h> 15#include <linux/mtd/partitions.h>
16#include <linux/mtd/physmap.h> 16#include <linux/mtd/physmap.h>
17#include <linux/mtd/map.h> 17#include <linux/mtd/map.h>
18#include <linux/smc911x.h> 18#include <linux/smsc911x.h>
19#include <linux/gpio.h> 19#include <linux/gpio.h>
20#include <linux/leds.h> 20#include <linux/leds.h>
21#include <asm/machvec.h> 21#include <asm/machvec.h>
22#include <asm/io.h> 22#include <asm/io.h>
23#include <cpu/sh7203.h> 23#include <cpu/sh7203.h>
24 24
25static struct smc911x_platdata smc911x_info = { 25static struct smsc911x_platform_config smsc911x_config = {
26 .flags = SMC911X_USE_16BIT, 26 .phy_interface = PHY_INTERFACE_MODE_MII,
27 .irq_flags = IRQF_TRIGGER_LOW, 27 .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
28 .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
29 .flags = SMSC911X_USE_16BIT,
28}; 30};
29 31
30static struct resource smc911x_resources[] = { 32static struct resource smsc911x_resources[] = {
31 [0] = { 33 [0] = {
32 .start = 0x24000000, 34 .start = 0x24000000,
33 .end = 0x24000000 + 0x100, 35 .end = 0x24000000 + 0x100,
@@ -40,13 +42,13 @@ static struct resource smc911x_resources[] = {
40 }, 42 },
41}; 43};
42 44
43static struct platform_device smc911x_device = { 45static struct platform_device smsc911x_device = {
44 .name = "smc911x", 46 .name = "smsc911x",
45 .id = -1, 47 .id = -1,
46 .num_resources = ARRAY_SIZE(smc911x_resources), 48 .num_resources = ARRAY_SIZE(smsc911x_resources),
47 .resource = smc911x_resources, 49 .resource = smsc911x_resources,
48 .dev = { 50 .dev = {
49 .platform_data = &smc911x_info, 51 .platform_data = &smsc911x_config,
50 }, 52 },
51}; 53};
52 54
@@ -87,7 +89,7 @@ static struct platform_device led_device = {
87}; 89};
88 90
89static struct platform_device *rsk7203_devices[] __initdata = { 91static struct platform_device *rsk7203_devices[] __initdata = {
90 &smc911x_device, 92 &smsc911x_device,
91 &led_device, 93 &led_device,
92}; 94};
93 95
diff --git a/arch/sh/configs/rsk7203_defconfig b/arch/sh/configs/rsk7203_defconfig
index dcdef31cf19b..2581a78b33bc 100644
--- a/arch/sh/configs/rsk7203_defconfig
+++ b/arch/sh/configs/rsk7203_defconfig
@@ -509,13 +509,30 @@ CONFIG_NETDEVICES=y
509# CONFIG_EQUALIZER is not set 509# CONFIG_EQUALIZER is not set
510# CONFIG_TUN is not set 510# CONFIG_TUN is not set
511# CONFIG_VETH is not set 511# CONFIG_VETH is not set
512# CONFIG_PHYLIB is not set 512CONFIG_PHYLIB=y
513
514#
515# MII PHY device drivers
516#
517# CONFIG_MARVELL_PHY is not set
518# CONFIG_DAVICOM_PHY is not set
519# CONFIG_QSEMI_PHY is not set
520# CONFIG_LXT_PHY is not set
521# CONFIG_CICADA_PHY is not set
522# CONFIG_VITESSE_PHY is not set
523CONFIG_SMSC_PHY=y
524# CONFIG_BROADCOM_PHY is not set
525# CONFIG_ICPLUS_PHY is not set
526# CONFIG_REALTEK_PHY is not set
527# CONFIG_FIXED_PHY is not set
528# CONFIG_MDIO_BITBANG is not set
513CONFIG_NET_ETHERNET=y 529CONFIG_NET_ETHERNET=y
514CONFIG_MII=y 530CONFIG_MII=y
515# CONFIG_AX88796 is not set 531# CONFIG_AX88796 is not set
516# CONFIG_STNIC is not set 532# CONFIG_STNIC is not set
517# CONFIG_SMC91X is not set 533# CONFIG_SMC91X is not set
518CONFIG_SMC911X=y 534# CONFIG_SMC911X is not set
535CONFIG_SMSC911X=y
519# CONFIG_IBM_NEW_EMAC_ZMII is not set 536# CONFIG_IBM_NEW_EMAC_ZMII is not set
520# CONFIG_IBM_NEW_EMAC_RGMII is not set 537# CONFIG_IBM_NEW_EMAC_RGMII is not set
521# CONFIG_IBM_NEW_EMAC_TAH is not set 538# CONFIG_IBM_NEW_EMAC_TAH is not set