diff options
author | Steve Glendinning <steve.glendinning@smsc.com> | 2009-01-07 03:22:24 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-01-21 03:42:34 -0500 |
commit | 8ed3592e567db7344b2c7353667e0d281cd13471 (patch) | |
tree | 4e86c8c8f99fff5d0ecaf7c0d7198fc350697ab6 /arch/sh/boards | |
parent | 02da916ae69889f72ca026d759fe521094ba7065 (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/sh/boards')
-rw-r--r-- | arch/sh/boards/mach-rsk/devices-rsk7203.c | 24 |
1 files changed, 13 insertions, 11 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 | ||
25 | static struct smc911x_platdata smc911x_info = { | 25 | static 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 | ||
30 | static struct resource smc911x_resources[] = { | 32 | static 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 | ||
43 | static struct platform_device smc911x_device = { | 45 | static 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 | ||
89 | static struct platform_device *rsk7203_devices[] __initdata = { | 91 | static struct platform_device *rsk7203_devices[] __initdata = { |
90 | &smc911x_device, | 92 | &smsc911x_device, |
91 | &led_device, | 93 | &led_device, |
92 | }; | 94 | }; |
93 | 95 | ||