diff options
Diffstat (limited to 'arch/sh/boards/se/770x/setup.c')
-rw-r--r-- | arch/sh/boards/se/770x/setup.c | 53 |
1 files changed, 50 insertions, 3 deletions
diff --git a/arch/sh/boards/se/770x/setup.c b/arch/sh/boards/se/770x/setup.c index 318bc8a3969c..cf4a5ba12df4 100644 --- a/arch/sh/boards/se/770x/setup.c +++ b/arch/sh/boards/se/770x/setup.c | |||
@@ -14,8 +14,6 @@ | |||
14 | #include <asm/smc37c93x.h> | 14 | #include <asm/smc37c93x.h> |
15 | #include <asm/heartbeat.h> | 15 | #include <asm/heartbeat.h> |
16 | 16 | ||
17 | void init_se_IRQ(void); | ||
18 | |||
19 | /* | 17 | /* |
20 | * Configure the Super I/O chip | 18 | * Configure the Super I/O chip |
21 | */ | 19 | */ |
@@ -73,7 +71,7 @@ static struct resource cf_ide_resources[] = { | |||
73 | }, | 71 | }, |
74 | [1] = { | 72 | [1] = { |
75 | .start = PA_MRSHPC_IO + 0x1f0 + 0x206, | 73 | .start = PA_MRSHPC_IO + 0x1f0 + 0x206, |
76 | .end = PA_MRSHPC_IO + 0x1f0 +8 + 0x206 + 8, | 74 | .end = PA_MRSHPC_IO + 0x1f0 + 8 + 0x206 + 8, |
77 | .flags = IORESOURCE_MEM, | 75 | .flags = IORESOURCE_MEM, |
78 | }, | 76 | }, |
79 | [2] = { | 77 | [2] = { |
@@ -115,9 +113,58 @@ static struct platform_device heartbeat_device = { | |||
115 | .resource = heartbeat_resources, | 113 | .resource = heartbeat_resources, |
116 | }; | 114 | }; |
117 | 115 | ||
116 | /* SH771X Ethernet driver */ | ||
117 | static struct resource sh_eth0_resources[] = { | ||
118 | [0] = { | ||
119 | .start = SH_ETH0_BASE, | ||
120 | .end = SH_ETH0_BASE + 0x1B8, | ||
121 | .flags = IORESOURCE_MEM, | ||
122 | }, | ||
123 | [1] = { | ||
124 | .start = SH_ETH0_IRQ, | ||
125 | .end = SH_ETH0_IRQ, | ||
126 | .flags = IORESOURCE_IRQ, | ||
127 | }, | ||
128 | }; | ||
129 | |||
130 | static struct platform_device sh_eth0_device = { | ||
131 | .name = "sh-eth", | ||
132 | .id = 0, | ||
133 | .dev = { | ||
134 | .platform_data = PHY_ID, | ||
135 | }, | ||
136 | .num_resources = ARRAY_SIZE(sh_eth0_resources), | ||
137 | .resource = sh_eth0_resources, | ||
138 | }; | ||
139 | |||
140 | static struct resource sh_eth1_resources[] = { | ||
141 | [0] = { | ||
142 | .start = SH_ETH1_BASE, | ||
143 | .end = SH_ETH1_BASE + 0x1B8, | ||
144 | .flags = IORESOURCE_MEM, | ||
145 | }, | ||
146 | [1] = { | ||
147 | .start = SH_ETH1_IRQ, | ||
148 | .end = SH_ETH1_IRQ, | ||
149 | .flags = IORESOURCE_IRQ, | ||
150 | }, | ||
151 | }; | ||
152 | |||
153 | static struct platform_device sh_eth1_device = { | ||
154 | .name = "sh-eth", | ||
155 | .id = 1, | ||
156 | .dev = { | ||
157 | .platform_data = PHY_ID, | ||
158 | }, | ||
159 | .num_resources = ARRAY_SIZE(sh_eth1_resources), | ||
160 | .resource = sh_eth1_resources, | ||
161 | }; | ||
162 | |||
118 | static struct platform_device *se_devices[] __initdata = { | 163 | static struct platform_device *se_devices[] __initdata = { |
119 | &heartbeat_device, | 164 | &heartbeat_device, |
120 | &cf_ide_device, | 165 | &cf_ide_device, |
166 | &sh_eth0_device, | ||
167 | &sh_eth1_device, | ||
121 | }; | 168 | }; |
122 | 169 | ||
123 | static int __init se_devices_setup(void) | 170 | static int __init se_devices_setup(void) |