diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-04-21 16:43:21 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2009-06-04 22:41:17 -0400 |
commit | b86017150087ac62c834ac64b87b9565850eb320 (patch) | |
tree | 4ade075de48cf4e480c1ec33a917308e4515220b /arch | |
parent | ef47d5f02402b4b1183d64edde5e89178794bb9d (diff) |
[ARM] pxa/csb726: switch to use smsc911x driver
csb726 used obsolete and not working out-of-tree driver smc911x.
Switch it to use new smsc911x driver.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-pxa/csb726.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/csb726.c b/arch/arm/mach-pxa/csb726.c index f95b32d98993..657d7a491747 100644 --- a/arch/arm/mach-pxa/csb726.c +++ b/arch/arm/mach-pxa/csb726.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/mtd/physmap.h> | 16 | #include <linux/mtd/physmap.h> |
17 | #include <linux/mtd/partitions.h> | 17 | #include <linux/mtd/partitions.h> |
18 | #include <linux/sm501.h> | 18 | #include <linux/sm501.h> |
19 | #include <linux/smsc911x.h> | ||
19 | 20 | ||
20 | #include <asm/mach-types.h> | 21 | #include <asm/mach-types.h> |
21 | #include <asm/mach/arch.h> | 22 | #include <asm/mach/arch.h> |
@@ -275,15 +276,26 @@ static struct resource csb726_lan_resources[] = { | |||
275 | { | 276 | { |
276 | .start = CSB726_IRQ_LAN, | 277 | .start = CSB726_IRQ_LAN, |
277 | .end = CSB726_IRQ_LAN, | 278 | .end = CSB726_IRQ_LAN, |
278 | .flags = IORESOURCE_IRQ, | 279 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE, |
279 | }, | 280 | }, |
280 | }; | 281 | }; |
281 | 282 | ||
283 | struct smsc911x_platform_config csb726_lan_config = { | ||
284 | .irq_type = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, | ||
285 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, | ||
286 | .flags = SMSC911X_USE_32BIT, | ||
287 | .phy_interface = PHY_INTERFACE_MODE_MII, | ||
288 | }; | ||
289 | |||
290 | |||
282 | static struct platform_device csb726_lan = { | 291 | static struct platform_device csb726_lan = { |
283 | .name = "smc911x", | 292 | .name = "smsc911x", |
284 | .id = -1, | 293 | .id = -1, |
285 | .num_resources = ARRAY_SIZE(csb726_lan_resources), | 294 | .num_resources = ARRAY_SIZE(csb726_lan_resources), |
286 | .resource = csb726_lan_resources, | 295 | .resource = csb726_lan_resources, |
296 | .dev = { | ||
297 | .platform_data = &csb726_lan_config, | ||
298 | }, | ||
287 | }; | 299 | }; |
288 | 300 | ||
289 | static struct platform_device *devices[] __initdata = { | 301 | static struct platform_device *devices[] __initdata = { |