Skip to content
Snippets Groups Projects
Commit 8212f563 authored by Marek Vasut's avatar Marek Vasut Committed by Nobuhiro Iwamatsu
Browse files

ARM: rmobile: Drop board_mmc_init


The board_mmc_init() is no longer invoked when DM is used, so move
all the pinmux config into board_init() instead.

Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: default avatarNobuhiro Iwamatsu <iwamatsu@nigauri.org>
parent 3158b6f6
No related branches found
No related tags found
No related merge requests found
...@@ -158,12 +158,7 @@ int board_init(void) ...@@ -158,12 +158,7 @@ int board_init(void)
udelay(1); udelay(1);
#endif #endif
return 0; #ifdef CONFIG_MMC
}
#ifdef CONFIG_SH_SDHI
int board_mmc_init(bd_t *bis)
{
/* SDHI0 */ /* SDHI0 */
gpio_request(GPIO_GFN_SD0_DAT0, NULL); gpio_request(GPIO_GFN_SD0_DAT0, NULL);
gpio_request(GPIO_GFN_SD0_DAT1, NULL); gpio_request(GPIO_GFN_SD0_DAT1, NULL);
...@@ -227,10 +222,10 @@ int board_mmc_init(bd_t *bis) ...@@ -227,10 +222,10 @@ int board_mmc_init(bd_t *bis)
gpio_request(GPIO_GP_3_14, NULL); gpio_request(GPIO_GP_3_14, NULL);
gpio_direction_output(GPIO_GP_3_15, 1); /* power on */ gpio_direction_output(GPIO_GP_3_15, 1); /* power on */
gpio_direction_output(GPIO_GP_3_14, 1); /* 1: 3.3V, 0: 1.8V */ gpio_direction_output(GPIO_GP_3_14, 1); /* 1: 3.3V, 0: 1.8V */
#endif
return 0; return 0;
} }
#endif
int dram_init(void) int dram_init(void)
{ {
......
...@@ -137,12 +137,7 @@ int board_init(void) ...@@ -137,12 +137,7 @@ int board_init(void)
udelay(1); udelay(1);
#endif #endif
return 0; #ifdef CONFIG_MMC
}
#ifdef CONFIG_SH_SDHI
int board_mmc_init(bd_t *bis)
{
/* SDHI0 */ /* SDHI0 */
gpio_request(GPIO_GFN_SD0_DAT0, NULL); gpio_request(GPIO_GFN_SD0_DAT0, NULL);
gpio_request(GPIO_GFN_SD0_DAT1, NULL); gpio_request(GPIO_GFN_SD0_DAT1, NULL);
...@@ -179,10 +174,10 @@ int board_mmc_init(bd_t *bis) ...@@ -179,10 +174,10 @@ int board_mmc_init(bd_t *bis)
gpio_request(GPIO_GP_5_9, NULL); gpio_request(GPIO_GP_5_9, NULL);
gpio_direction_output(GPIO_GP_5_3, 0); /* 1: 3.3V, 0: 1.8V */ gpio_direction_output(GPIO_GP_5_3, 0); /* 1: 3.3V, 0: 1.8V */
gpio_direction_output(GPIO_GP_5_9, 0); /* 1: 3.3V, 0: 1.8V */ gpio_direction_output(GPIO_GP_5_9, 0); /* 1: 3.3V, 0: 1.8V */
#endif
return 0; return 0;
} }
#endif
int dram_init(void) int dram_init(void)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment