diff options
Diffstat (limited to 'arch/arm/mach-pxa/csb726.c')
-rw-r--r-- | arch/arm/mach-pxa/csb726.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/csb726.c b/arch/arm/mach-pxa/csb726.c index 2b289f83a61a..7d3e1b46e550 100644 --- a/arch/arm/mach-pxa/csb726.c +++ b/arch/arm/mach-pxa/csb726.c | |||
@@ -16,15 +16,17 @@ | |||
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> |
22 | #include <mach/csb726.h> | 23 | #include <mach/csb726.h> |
23 | #include <mach/mfp-pxa27x.h> | 24 | #include <mach/mfp-pxa27x.h> |
24 | #include <mach/i2c.h> | 25 | #include <plat/i2c.h> |
25 | #include <mach/mmc.h> | 26 | #include <mach/mmc.h> |
26 | #include <mach/ohci.h> | 27 | #include <mach/ohci.h> |
27 | #include <mach/pxa2xx-regs.h> | 28 | #include <mach/pxa2xx-regs.h> |
29 | #include <mach/audio.h> | ||
28 | 30 | ||
29 | #include "generic.h" | 31 | #include "generic.h" |
30 | #include "devices.h" | 32 | #include "devices.h" |
@@ -275,15 +277,26 @@ static struct resource csb726_lan_resources[] = { | |||
275 | { | 277 | { |
276 | .start = CSB726_IRQ_LAN, | 278 | .start = CSB726_IRQ_LAN, |
277 | .end = CSB726_IRQ_LAN, | 279 | .end = CSB726_IRQ_LAN, |
278 | .flags = IORESOURCE_IRQ, | 280 | .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWEDGE, |
279 | }, | 281 | }, |
280 | }; | 282 | }; |
281 | 283 | ||
284 | struct smsc911x_platform_config csb726_lan_config = { | ||
285 | .irq_type = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, | ||
286 | .irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL, | ||
287 | .flags = SMSC911X_USE_32BIT, | ||
288 | .phy_interface = PHY_INTERFACE_MODE_MII, | ||
289 | }; | ||
290 | |||
291 | |||
282 | static struct platform_device csb726_lan = { | 292 | static struct platform_device csb726_lan = { |
283 | .name = "smc911x", | 293 | .name = "smsc911x", |
284 | .id = -1, | 294 | .id = -1, |
285 | .num_resources = ARRAY_SIZE(csb726_lan_resources), | 295 | .num_resources = ARRAY_SIZE(csb726_lan_resources), |
286 | .resource = csb726_lan_resources, | 296 | .resource = csb726_lan_resources, |
297 | .dev = { | ||
298 | .platform_data = &csb726_lan_config, | ||
299 | }, | ||
287 | }; | 300 | }; |
288 | 301 | ||
289 | static struct platform_device *devices[] __initdata = { | 302 | static struct platform_device *devices[] __initdata = { |
@@ -303,6 +316,7 @@ static void __init csb726_init(void) | |||
303 | pxa27x_set_i2c_power_info(NULL); | 316 | pxa27x_set_i2c_power_info(NULL); |
304 | pxa_set_mci_info(&csb726_mci); | 317 | pxa_set_mci_info(&csb726_mci); |
305 | pxa_set_ohci_info(&csb726_ohci_platform_data); | 318 | pxa_set_ohci_info(&csb726_ohci_platform_data); |
319 | pxa_set_ac97_info(NULL); | ||
306 | 320 | ||
307 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 321 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
308 | } | 322 | } |