提交 5b380ec1 编写于 作者: M Magnus Damm 提交者: Paul Mundt

sh: add SDHI1 support to ms7724se

Add support for cn8 and SDHI1 to the ms7724se board.
Signed-off-by: NMagnus Damm <damm@opensource.se>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 8013cc9a
...@@ -463,6 +463,7 @@ static struct resource sdhi0_cn7_resources[] = { ...@@ -463,6 +463,7 @@ static struct resource sdhi0_cn7_resources[] = {
static struct platform_device sdhi0_cn7_device = { static struct platform_device sdhi0_cn7_device = {
.name = "sh_mobile_sdhi", .name = "sh_mobile_sdhi",
.id = 0,
.num_resources = ARRAY_SIZE(sdhi0_cn7_resources), .num_resources = ARRAY_SIZE(sdhi0_cn7_resources),
.resource = sdhi0_cn7_resources, .resource = sdhi0_cn7_resources,
.archdata = { .archdata = {
...@@ -470,6 +471,29 @@ static struct platform_device sdhi0_cn7_device = { ...@@ -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 = { static struct platform_device *ms7724se_devices[] __initdata = {
&heartbeat_device, &heartbeat_device,
&smc91x_eth_device, &smc91x_eth_device,
...@@ -483,6 +507,7 @@ static struct platform_device *ms7724se_devices[] __initdata = { ...@@ -483,6 +507,7 @@ static struct platform_device *ms7724se_devices[] __initdata = {
&sh7724_usb1_gadget_device, &sh7724_usb1_gadget_device,
&fsi_device, &fsi_device,
&sdhi0_cn7_device, &sdhi0_cn7_device,
&sdhi1_cn8_device,
}; };
#define EEPROM_OP 0xBA206000 #define EEPROM_OP 0xBA206000
...@@ -725,6 +750,16 @@ static int __init devices_setup(void) ...@@ -725,6 +750,16 @@ static int __init devices_setup(void)
gpio_request(GPIO_FN_SDHI0CMD, NULL); gpio_request(GPIO_FN_SDHI0CMD, NULL);
gpio_request(GPIO_FN_SDHI0CLK, 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 * enable SH-Eth
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册