]> git.hungrycats.org Git - linux/commitdiff
[ARM] Add platform device and resources for SMC91C96 devices.
authorRussell King <rmk@flint.arm.linux.org.uk>
Fri, 6 Feb 2004 19:37:06 +0000 (19:37 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Fri, 6 Feb 2004 19:37:06 +0000 (19:37 +0000)
arch/arm/mach-pxa/lubbock.c
arch/arm/mach-sa1100/neponset.c

index 7983baf11eab38ccaf8aa09e25cdd07e521dc068..6f214c706ffaea7a27c8e641af57d74411497333 100644 (file)
@@ -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)
index 76f6d09b6a600f3466dcaa7242aba8b2cbad3d53..4b6ad81955c80439211d3ac6059648408f0d5484 100644 (file)
@@ -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)