From 25f536d58fd356a129a384c98ebc93d8d3088f9d Mon Sep 17 00:00:00 2001 From: Russell King Date: Fri, 6 Feb 2004 19:37:06 +0000 Subject: [PATCH] [ARM] Add platform device and resources for SMC91C96 devices. --- arch/arm/mach-pxa/lubbock.c | 26 ++++++++++++++++++++++++++ arch/arm/mach-sa1100/neponset.c | 26 ++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index 7983baf11eab..6f214c706ffa 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c @@ -119,8 +119,34 @@ static struct platform_device sa1111_device = { .resource = sa1111_resources, }; +static struct resource smc91x_resources[] = { + [0] = { + .start = 0x0c000000, + .end = 0x0c0fffff, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = LUBBOCK_ETH_IRQ, + .end = LUBBOCK_ETH_IRQ, + .flags = IORESOURCE_IRQ, + }, + [2] = { + .start = 0x0e000000, + .end = 0x0e0fffff, + .flags = IORESOURCE_MEM, + }, +}; + +static struct platform_device smc91x_device = { + .name = "smc91x", + .id = 0, + .num_resources = ARRAY_SIZE(smc91x_resources), + .resource = smc91x_resources, +}; + static struct platform_device *devices[] __initdata = { &sa1111_device, + &smc91x_device, }; static void __init lubbock_init(void) diff --git a/arch/arm/mach-sa1100/neponset.c b/arch/arm/mach-sa1100/neponset.c index 76f6d09b6a60..4b6ad81955c8 100644 --- a/arch/arm/mach-sa1100/neponset.c +++ b/arch/arm/mach-sa1100/neponset.c @@ -256,9 +256,35 @@ static struct platform_device sa1111_device = { .resource = sa1111_resources, }; +static struct resource smc91x_resources[] = { + [0] = { + .start = SA1100_CS3_PHYS, + .end = SA1100_CS3_PHYS + 0x01ffffff, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_NEPONSET_SMC9196, + .end = IRQ_NEPONSET_SMC9196, + .flags = IORESOURCE_IRQ, + }, + [2] = { + .start = SA1100_CS3_PHYS + 0x02000000, + .end = SA1100_CS3_PHYS + 0x03ffffff, + .flags = IORESOURCE_MEM, + }, +}; + +static struct platform_device smc91x_device = { + .name = "smc91x", + .id = 0, + .num_resources = ARRAY_SIZE(smc91x_resources), + .resource = smc91x_resources, +}; + static struct platform_device *devices[] __initdata = { &neponset_device, &sa1111_device, + &smc91x_device, }; static int __init neponset_init(void) -- 2.39.5