SH7619 add ethernet controler support
authorYoshinori Sato <ysato@users.sourceforge.jp>
Wed, 2 Jul 2008 02:20:24 +0000 (22:20 -0400)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jul 2008 09:10:32 +0000 (18:10 +0900)
- Add EtherC + PHY resource define.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh2/setup-sh7619.c

index cc530f4d84d679a1418571319cf3b98be02d18fd..56e5878e55164f69b26aa54500d72227e794a63c 100644 (file)
@@ -96,8 +96,32 @@ static struct platform_device sci_device = {
        },
 };
 
+static struct resource eth_resources[] = {
+       [0] = {
+               .start = 0xfb000000,
+               .end =   0xfb0001c8,
+               .flags = IORESOURCE_MEM,
+       },
+       [1] = {
+               .start = 85,
+               .end = 85,
+               .flags = IORESOURCE_IRQ,
+       },
+};
+
+static struct platform_device eth_device = {
+       .name = "sh-eth",
+       .id     = -1,
+       .dev = {
+               .platform_data = (void *)1,
+       },
+       .num_resources = ARRAY_SIZE(eth_resources),
+       .resource = eth_resources,
+};
+
 static struct platform_device *sh7619_devices[] __initdata = {
        &sci_device,
+       &eth_device,
 };
 
 static int __init sh7619_devices_setup(void)