diff options
author | Magnus Damm <damm@opensource.se> | 2010-03-10 04:26:44 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-03-14 23:06:47 -0400 |
commit | 3a14d0397732b6aaa541348b5a8e8f639ecd02b7 (patch) | |
tree | 245ec6b06af94c1da79cc77c1fdfa6efbad72481 /arch/arm/mach-shmobile | |
parent | c57a31abf0b469b9cab6810f4e1895bb7ef1c482 (diff) |
ARM: mach-shmobile: ap4evb SDHI0 platform data V2
Add SDHI0 platform data for the AP4EVB board V2.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index a0463d926447..1c2ec96ce261 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -206,10 +206,32 @@ static struct platform_device keysc_device = { | |||
206 | }, | 206 | }, |
207 | }; | 207 | }; |
208 | 208 | ||
209 | /* SDHI0 */ | ||
210 | static struct resource sdhi0_resources[] = { | ||
211 | [0] = { | ||
212 | .name = "SDHI0", | ||
213 | .start = 0xe6850000, | ||
214 | .end = 0xe68501ff, | ||
215 | .flags = IORESOURCE_MEM, | ||
216 | }, | ||
217 | [1] = { | ||
218 | .start = 96, | ||
219 | .flags = IORESOURCE_IRQ, | ||
220 | }, | ||
221 | }; | ||
222 | |||
223 | static struct platform_device sdhi0_device = { | ||
224 | .name = "sh_mobile_sdhi", | ||
225 | .num_resources = ARRAY_SIZE(sdhi0_resources), | ||
226 | .resource = sdhi0_resources, | ||
227 | .id = 0, | ||
228 | }; | ||
229 | |||
209 | static struct platform_device *ap4evb_devices[] __initdata = { | 230 | static struct platform_device *ap4evb_devices[] __initdata = { |
210 | &nor_flash_device, | 231 | &nor_flash_device, |
211 | &smc911x_device, | 232 | &smc911x_device, |
212 | &keysc_device, | 233 | &keysc_device, |
234 | &sdhi0_device, | ||
213 | }; | 235 | }; |
214 | 236 | ||
215 | static struct map_desc ap4evb_io_desc[] __initdata = { | 237 | static struct map_desc ap4evb_io_desc[] __initdata = { |
@@ -286,6 +308,16 @@ static void __init ap4evb_init(void) | |||
286 | gpio_request(GPIO_FN_KEYIN3_133, NULL); | 308 | gpio_request(GPIO_FN_KEYIN3_133, NULL); |
287 | gpio_request(GPIO_FN_KEYIN4, NULL); | 309 | gpio_request(GPIO_FN_KEYIN4, NULL); |
288 | 310 | ||
311 | /* SDHI0 */ | ||
312 | gpio_request(GPIO_FN_SDHICD0, NULL); | ||
313 | gpio_request(GPIO_FN_SDHIWP0, NULL); | ||
314 | gpio_request(GPIO_FN_SDHICMD0, NULL); | ||
315 | gpio_request(GPIO_FN_SDHICLK0, NULL); | ||
316 | gpio_request(GPIO_FN_SDHID0_3, NULL); | ||
317 | gpio_request(GPIO_FN_SDHID0_2, NULL); | ||
318 | gpio_request(GPIO_FN_SDHID0_1, NULL); | ||
319 | gpio_request(GPIO_FN_SDHID0_0, NULL); | ||
320 | |||
289 | sh7372_add_standard_devices(); | 321 | sh7372_add_standard_devices(); |
290 | 322 | ||
291 | platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices)); | 323 | platform_add_devices(ap4evb_devices, ARRAY_SIZE(ap4evb_devices)); |