diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-06-17 02:59:01 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-17 02:59:10 -0400 |
commit | cc4949e1fdade5d063e9f8783cf0e2cc92041ce5 (patch) | |
tree | 4023bd641bfe464efbde518fb504d6865c9df014 /arch/arm/mach-pxa/csb726.c | |
parent | 28b4868820a56de661f54742ff91b78e12f1e582 (diff) | |
parent | 300df7dc89cc276377fc020704e34875d5c473b6 (diff) |
Merge branch 'linus' into x86/urgent
Merge reason: pull in latest to fix a bug in it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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 | } |