aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-10-01 22:23:07 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-10-25 21:37:05 -0400
commit0f79af600946d2c0067587fe8154f36095a1ba97 (patch)
tree74242aaf43dac71b991c58d6d33e22f09e15f06b /arch/sh
parent17f81473d1439178a1b5c50fdc013771993d6ec4 (diff)
sh: SDHI platform data to the SE7724 board
Add SD Card support to the se7724 board using the sh_mobile_sdhi driver hooked up to SDHI0 and CN7. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/boards/mach-se/7724/setup.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c
index e78c3be8ad2f..ce6b36ebe64d 100644
--- a/arch/sh/boards/mach-se/7724/setup.c
+++ b/arch/sh/boards/mach-se/7724/setup.c
@@ -448,6 +448,28 @@ static struct platform_device sh7724_usb1_gadget_device = {
448 .resource = sh7724_usb1_gadget_resources, 448 .resource = sh7724_usb1_gadget_resources,
449}; 449};
450 450
451static struct resource sdhi0_cn7_resources[] = {
452 [0] = {
453 .name = "SDHI0",
454 .start = 0x04ce0000,
455 .end = 0x04ce01ff,
456 .flags = IORESOURCE_MEM,
457 },
458 [1] = {
459 .start = 101,
460 .flags = IORESOURCE_IRQ,
461 },
462};
463
464static struct platform_device sdhi0_cn7_device = {
465 .name = "sh_mobile_sdhi",
466 .num_resources = ARRAY_SIZE(sdhi0_cn7_resources),
467 .resource = sdhi0_cn7_resources,
468 .archdata = {
469 .hwblk_id = HWBLK_SDHI0,
470 },
471};
472
451static struct platform_device *ms7724se_devices[] __initdata = { 473static struct platform_device *ms7724se_devices[] __initdata = {
452 &heartbeat_device, 474 &heartbeat_device,
453 &smc91x_eth_device, 475 &smc91x_eth_device,
@@ -460,6 +482,7 @@ static struct platform_device *ms7724se_devices[] __initdata = {
460 &sh7724_usb0_host_device, 482 &sh7724_usb0_host_device,
461 &sh7724_usb1_gadget_device, 483 &sh7724_usb1_gadget_device,
462 &fsi_device, 484 &fsi_device,
485 &sdhi0_cn7_device,
463}; 486};
464 487
465#define EEPROM_OP 0xBA206000 488#define EEPROM_OP 0xBA206000
@@ -698,6 +721,16 @@ static int __init devices_setup(void)
698 clk_set_rate(&fsimcka_clk, 11000); 721 clk_set_rate(&fsimcka_clk, 11000);
699 clk_put(fsia_clk); 722 clk_put(fsia_clk);
700 723
724 /* SDHI0 connected to cn7 */
725 gpio_request(GPIO_FN_SDHI0CD, NULL);
726 gpio_request(GPIO_FN_SDHI0WP, NULL);
727 gpio_request(GPIO_FN_SDHI0D3, NULL);
728 gpio_request(GPIO_FN_SDHI0D2, NULL);
729 gpio_request(GPIO_FN_SDHI0D1, NULL);
730 gpio_request(GPIO_FN_SDHI0D0, NULL);
731 gpio_request(GPIO_FN_SDHI0CMD, NULL);
732 gpio_request(GPIO_FN_SDHI0CLK, NULL);
733
701 /* 734 /*
702 * enable SH-Eth 735 * enable SH-Eth
703 * 736 *