提交 1e0edb76 编写于 作者: K Kuninori Morimoto 提交者: Simon Horman

ARM: shmobile: bockw: add MMCIF support

This patch enables CN26 MMCIF
Signed-off-by: NYusuke Goda <yusuke.goda.sx@renesas.com>
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NSimon Horman <horms+renesas@verge.net.au>
上级 c06a164c
...@@ -41,6 +41,23 @@ ...@@ -41,6 +41,23 @@
* SW41 SCIF RCAN * SW41 SCIF RCAN
*/ */
/*
* MMC (CN26) pin
*
* SW6 (D2) 3 pin
* SW7 (D5) ON
* SW8 (D3) 3 pin
* SW10 (D4) 1 pin
* SW12 (CLK) 1 pin
* SW13 (D6) 3 pin
* SW14 (CMD) ON
* SW15 (D6) 1 pin
* SW16 (D0) ON
* SW17 (D1) ON
* SW18 (D7) 3 pin
* SW19 (MMC) 1 pin
*/
/* Dummy supplies, where voltage doesn't matter */ /* Dummy supplies, where voltage doesn't matter */
static struct regulator_consumer_supply dummy_supplies[] = { static struct regulator_consumer_supply dummy_supplies[] = {
REGULATOR_SUPPLY("vddvario", "smsc911x"), REGULATOR_SUPPLY("vddvario", "smsc911x"),
...@@ -114,6 +131,15 @@ static struct spi_board_info spi_board_info[] __initdata = { ...@@ -114,6 +131,15 @@ static struct spi_board_info spi_board_info[] __initdata = {
}, },
}; };
/* MMC */
static struct sh_mmcif_plat_data sh_mmcif_plat = {
.sup_pclk = 0,
.ocr = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34,
.caps = MMC_CAP_4_BIT_DATA |
MMC_CAP_8_BIT_DATA |
MMC_CAP_NEEDS_POLL,
};
static const struct pinctrl_map bockw_pinctrl_map[] = { static const struct pinctrl_map bockw_pinctrl_map[] = {
/* Ether */ /* Ether */
PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778", PIN_MAP_MUX_GROUP_DEFAULT("sh-eth", "pfc-r8a7778",
...@@ -121,6 +147,11 @@ static const struct pinctrl_map bockw_pinctrl_map[] = { ...@@ -121,6 +147,11 @@ static const struct pinctrl_map bockw_pinctrl_map[] = {
/* HSPI0 */ /* HSPI0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-hspi.0", "pfc-r8a7778", PIN_MAP_MUX_GROUP_DEFAULT("sh-hspi.0", "pfc-r8a7778",
"hspi0_a", "hspi0"), "hspi0_a", "hspi0"),
/* MMC */
PIN_MAP_MUX_GROUP_DEFAULT("sh_mmcif", "pfc-r8a7778",
"mmc_data8", "mmc"),
PIN_MAP_MUX_GROUP_DEFAULT("sh_mmcif", "pfc-r8a7778",
"mmc_ctrl", "mmc"),
/* SCIF0 */ /* SCIF0 */
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778", PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.0", "pfc-r8a7778",
"scif0_data_a", "scif0"), "scif0_data_a", "scif0"),
...@@ -145,6 +176,7 @@ static void __init bockw_init(void) ...@@ -145,6 +176,7 @@ static void __init bockw_init(void)
r8a7778_add_ether_device(&ether_platform_data); r8a7778_add_ether_device(&ether_platform_data);
r8a7778_add_i2c_device(0); r8a7778_add_i2c_device(0);
r8a7778_add_hspi_device(0); r8a7778_add_hspi_device(0);
r8a7778_add_mmc_device(&sh_mmcif_plat);
i2c_register_board_info(0, i2c0_devices, i2c_register_board_info(0, i2c0_devices,
ARRAY_SIZE(i2c0_devices)); ARRAY_SIZE(i2c0_devices));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册