diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2008-07-01 22:20:24 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-07-28 05:10:32 -0400 |
commit | d88a3ea6fa4c98d482240a6a85945ed448b7671d (patch) | |
tree | a6feb05c2327e574940ade80dd730e8e2b09af84 /arch | |
parent | fafb7a97de73a917a875048801bd81cf64f79e4a (diff) |
SH7619 add ethernet controler support
- Add EtherC + PHY resource define.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/cpu/sh2/setup-sh7619.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh2/setup-sh7619.c b/arch/sh/kernel/cpu/sh2/setup-sh7619.c index cc530f4d84d6..56e5878e5516 100644 --- a/arch/sh/kernel/cpu/sh2/setup-sh7619.c +++ b/arch/sh/kernel/cpu/sh2/setup-sh7619.c | |||
@@ -96,8 +96,32 @@ static struct platform_device sci_device = { | |||
96 | }, | 96 | }, |
97 | }; | 97 | }; |
98 | 98 | ||
99 | static struct resource eth_resources[] = { | ||
100 | [0] = { | ||
101 | .start = 0xfb000000, | ||
102 | .end = 0xfb0001c8, | ||
103 | .flags = IORESOURCE_MEM, | ||
104 | }, | ||
105 | [1] = { | ||
106 | .start = 85, | ||
107 | .end = 85, | ||
108 | .flags = IORESOURCE_IRQ, | ||
109 | }, | ||
110 | }; | ||
111 | |||
112 | static struct platform_device eth_device = { | ||
113 | .name = "sh-eth", | ||
114 | .id = -1, | ||
115 | .dev = { | ||
116 | .platform_data = (void *)1, | ||
117 | }, | ||
118 | .num_resources = ARRAY_SIZE(eth_resources), | ||
119 | .resource = eth_resources, | ||
120 | }; | ||
121 | |||
99 | static struct platform_device *sh7619_devices[] __initdata = { | 122 | static struct platform_device *sh7619_devices[] __initdata = { |
100 | &sci_device, | 123 | &sci_device, |
124 | ð_device, | ||
101 | }; | 125 | }; |
102 | 126 | ||
103 | static int __init sh7619_devices_setup(void) | 127 | static int __init sh7619_devices_setup(void) |