aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2009-10-27 06:49:55 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-10-27 20:18:24 -0400
commit5b380ec11d198a07aa6bf3a9e851531e91bf4234 (patch)
tree1041f12dd0ced2e50219cdfcf6a0e92bb42b2ea1 /arch
parent8013cc9a5d2f6dcb79ffdcf707cf90ba120edfec (diff)
sh: add SDHI1 support to ms7724se
Add support for cn8 and SDHI1 to the ms7724se board. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/boards/mach-se/7724/setup.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c
index 4488b3e774d..ffb97f22783 100644
--- a/arch/sh/boards/mach-se/7724/setup.c
+++ b/arch/sh/boards/mach-se/7724/setup.c
@@ -463,6 +463,7 @@ static struct resource sdhi0_cn7_resources[] = {
463 463
464static struct platform_device sdhi0_cn7_device = { 464static struct platform_device sdhi0_cn7_device = {
465 .name = "sh_mobile_sdhi", 465 .name = "sh_mobile_sdhi",
466 .id = 0,
466 .num_resources = ARRAY_SIZE(sdhi0_cn7_resources), 467 .num_resources = ARRAY_SIZE(sdhi0_cn7_resources),
467 .resource = sdhi0_cn7_resources, 468 .resource = sdhi0_cn7_resources,
468 .archdata = { 469 .archdata = {
@@ -470,6 +471,29 @@ static struct platform_device sdhi0_cn7_device = {
470 }, 471 },
471}; 472};
472 473
474static struct resource sdhi1_cn8_resources[] = {
475 [0] = {
476 .name = "SDHI1",
477 .start = 0x04cf0000,
478 .end = 0x04cf01ff,
479 .flags = IORESOURCE_MEM,
480 },
481 [1] = {
482 .start = 24,
483 .flags = IORESOURCE_IRQ,
484 },
485};
486
487static struct platform_device sdhi1_cn8_device = {
488 .name = "sh_mobile_sdhi",
489 .id = 1,
490 .num_resources = ARRAY_SIZE(sdhi1_cn8_resources),
491 .resource = sdhi1_cn8_resources,
492 .archdata = {
493 .hwblk_id = HWBLK_SDHI1,
494 },
495};
496
473static struct platform_device *ms7724se_devices[] __initdata = { 497static struct platform_device *ms7724se_devices[] __initdata = {
474 &heartbeat_device, 498 &heartbeat_device,
475 &smc91x_eth_device, 499 &smc91x_eth_device,
@@ -483,6 +507,7 @@ static struct platform_device *ms7724se_devices[] __initdata = {
483 &sh7724_usb1_gadget_device, 507 &sh7724_usb1_gadget_device,
484 &fsi_device, 508 &fsi_device,
485 &sdhi0_cn7_device, 509 &sdhi0_cn7_device,
510 &sdhi1_cn8_device,
486}; 511};
487 512
488#define EEPROM_OP 0xBA206000 513#define EEPROM_OP 0xBA206000
@@ -725,6 +750,16 @@ static int __init devices_setup(void)
725 gpio_request(GPIO_FN_SDHI0CMD, NULL); 750 gpio_request(GPIO_FN_SDHI0CMD, NULL);
726 gpio_request(GPIO_FN_SDHI0CLK, NULL); 751 gpio_request(GPIO_FN_SDHI0CLK, NULL);
727 752
753 /* SDHI1 connected to cn8 */
754 gpio_request(GPIO_FN_SDHI1CD, NULL);
755 gpio_request(GPIO_FN_SDHI1WP, NULL);
756 gpio_request(GPIO_FN_SDHI1D3, NULL);
757 gpio_request(GPIO_FN_SDHI1D2, NULL);
758 gpio_request(GPIO_FN_SDHI1D1, NULL);
759 gpio_request(GPIO_FN_SDHI1D0, NULL);
760 gpio_request(GPIO_FN_SDHI1CMD, NULL);
761 gpio_request(GPIO_FN_SDHI1CLK, NULL);
762
728 /* 763 /*
729 * enable SH-Eth 764 * enable SH-Eth
730 * 765 *