diff options
Diffstat (limited to 'arch/sh/boards/board-magicpanelr2.c')
-rw-r--r-- | arch/sh/boards/board-magicpanelr2.c | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/arch/sh/boards/board-magicpanelr2.c b/arch/sh/boards/board-magicpanelr2.c index 3de22ccdeb7e..0a37c8bfc959 100644 --- a/arch/sh/boards/board-magicpanelr2.c +++ b/arch/sh/boards/board-magicpanelr2.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | #include <linux/delay.h> | 15 | #include <linux/delay.h> |
16 | #include <linux/gpio.h> | 16 | #include <linux/gpio.h> |
17 | #include <linux/smsc911x.h> | ||
17 | #include <linux/mtd/mtd.h> | 18 | #include <linux/mtd/mtd.h> |
18 | #include <linux/mtd/partitions.h> | 19 | #include <linux/mtd/partitions.h> |
19 | #include <linux/mtd/physmap.h> | 20 | #include <linux/mtd/physmap.h> |
@@ -242,7 +243,7 @@ static void __init mpr2_setup(char **cmdline_p) | |||
242 | printk(KERN_WARNING "Ethernet not ready\n"); | 243 | printk(KERN_WARNING "Ethernet not ready\n"); |
243 | } | 244 | } |
244 | 245 | ||
245 | static struct resource smc911x_resources[] = { | 246 | static struct resource smsc911x_resources[] = { |
246 | [0] = { | 247 | [0] = { |
247 | .start = 0xa8000000, | 248 | .start = 0xa8000000, |
248 | .end = 0xabffffff, | 249 | .end = 0xabffffff, |
@@ -255,11 +256,21 @@ static struct resource smc911x_resources[] = { | |||
255 | }, | 256 | }, |
256 | }; | 257 | }; |
257 | 258 | ||
258 | static struct platform_device smc911x_device = { | 259 | static struct smsc911x_platform_config smsc911x_config = { |
259 | .name = "smc911x", | 260 | .phy_interface = PHY_INTERFACE_MODE_MII, |
261 | .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, | ||
262 | .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN, | ||
263 | .flags = SMSC911X_USE_32BIT, | ||
264 | }; | ||
265 | |||
266 | static struct platform_device smsc911x_device = { | ||
267 | .name = "smsc911x", | ||
260 | .id = -1, | 268 | .id = -1, |
261 | .num_resources = ARRAY_SIZE(smc911x_resources), | 269 | .num_resources = ARRAY_SIZE(smsc911x_resources), |
262 | .resource = smc911x_resources, | 270 | .resource = smsc911x_resources, |
271 | .dev = { | ||
272 | .platform_data = &smsc911x_config, | ||
273 | }, | ||
263 | }; | 274 | }; |
264 | 275 | ||
265 | static struct resource heartbeat_resources[] = { | 276 | static struct resource heartbeat_resources[] = { |
@@ -360,7 +371,7 @@ static void __init set_mtd_partitions(void) | |||
360 | 371 | ||
361 | static struct platform_device *mpr2_devices[] __initdata = { | 372 | static struct platform_device *mpr2_devices[] __initdata = { |
362 | &heartbeat_device, | 373 | &heartbeat_device, |
363 | &smc911x_device, | 374 | &smsc911x_device, |
364 | &flash_device, | 375 | &flash_device, |
365 | }; | 376 | }; |
366 | 377 | ||