aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-pxa/csb726.c16
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
283struct 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
282static struct platform_device csb726_lan = { 291static 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
289static struct platform_device *devices[] __initdata = { 301static struct platform_device *devices[] __initdata = {