From f50eb25d669e090bb56b0338a6da880755cd1875 Mon Sep 17 00:00:00 2001 From: Magnus Damm Date: Tue, 27 Oct 2009 10:49:55 +0000 Subject: [PATCH] --- yaml --- r: 173449 b: refs/heads/master c: 5b380ec11d198a07aa6bf3a9e851531e91bf4234 h: refs/heads/master i: 173447: 291d0aadf550bffb96d140cb7a7306f596b547b9 v: v3 --- [refs] | 2 +- trunk/arch/sh/boards/mach-se/7724/setup.c | 35 +++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index b5d28315f4a6..e6d559997b18 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8013cc9a5d2f6dcb79ffdcf707cf90ba120edfec +refs/heads/master: 5b380ec11d198a07aa6bf3a9e851531e91bf4234 diff --git a/trunk/arch/sh/boards/mach-se/7724/setup.c b/trunk/arch/sh/boards/mach-se/7724/setup.c index 4488b3e774df..ffb97f22783c 100644 --- a/trunk/arch/sh/boards/mach-se/7724/setup.c +++ b/trunk/arch/sh/boards/mach-se/7724/setup.c @@ -463,6 +463,7 @@ static struct resource sdhi0_cn7_resources[] = { static struct platform_device sdhi0_cn7_device = { .name = "sh_mobile_sdhi", + .id = 0, .num_resources = ARRAY_SIZE(sdhi0_cn7_resources), .resource = sdhi0_cn7_resources, .archdata = { @@ -470,6 +471,29 @@ static struct platform_device sdhi0_cn7_device = { }, }; +static struct resource sdhi1_cn8_resources[] = { + [0] = { + .name = "SDHI1", + .start = 0x04cf0000, + .end = 0x04cf01ff, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = 24, + .flags = IORESOURCE_IRQ, + }, +}; + +static struct platform_device sdhi1_cn8_device = { + .name = "sh_mobile_sdhi", + .id = 1, + .num_resources = ARRAY_SIZE(sdhi1_cn8_resources), + .resource = sdhi1_cn8_resources, + .archdata = { + .hwblk_id = HWBLK_SDHI1, + }, +}; + static struct platform_device *ms7724se_devices[] __initdata = { &heartbeat_device, &smc91x_eth_device, @@ -483,6 +507,7 @@ static struct platform_device *ms7724se_devices[] __initdata = { &sh7724_usb1_gadget_device, &fsi_device, &sdhi0_cn7_device, + &sdhi1_cn8_device, }; #define EEPROM_OP 0xBA206000 @@ -725,6 +750,16 @@ static int __init devices_setup(void) gpio_request(GPIO_FN_SDHI0CMD, NULL); gpio_request(GPIO_FN_SDHI0CLK, NULL); + /* SDHI1 connected to cn8 */ + gpio_request(GPIO_FN_SDHI1CD, NULL); + gpio_request(GPIO_FN_SDHI1WP, NULL); + gpio_request(GPIO_FN_SDHI1D3, NULL); + gpio_request(GPIO_FN_SDHI1D2, NULL); + gpio_request(GPIO_FN_SDHI1D1, NULL); + gpio_request(GPIO_FN_SDHI1D0, NULL); + gpio_request(GPIO_FN_SDHI1CMD, NULL); + gpio_request(GPIO_FN_SDHI1CLK, NULL); + /* * enable SH-Eth *