mirror of
https://xff.cz/git/u-boot/
synced 2025-09-23 11:32:12 +02:00
ARM: rmobile: Remove SH SDHI probing from Salvator-X board
Drop the SH SDHI bit from the board since SD now probes from DT instead. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
committed by
Nobuhiro Iwamatsu
parent
3f63551471
commit
ddb39a075b
@@ -164,8 +164,6 @@ int board_init(void)
|
|||||||
#ifdef CONFIG_SH_SDHI
|
#ifdef CONFIG_SH_SDHI
|
||||||
int board_mmc_init(bd_t *bis)
|
int board_mmc_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
int ret = -ENODEV;
|
|
||||||
|
|
||||||
/* 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);
|
||||||
@@ -181,11 +179,6 @@ int board_mmc_init(bd_t *bis)
|
|||||||
gpio_direction_output(GPIO_GP_5_2, 1); /* power on */
|
gpio_direction_output(GPIO_GP_5_2, 1); /* power on */
|
||||||
gpio_direction_output(GPIO_GP_5_1, 1); /* 1: 3.3V, 0: 1.8V */
|
gpio_direction_output(GPIO_GP_5_1, 1); /* 1: 3.3V, 0: 1.8V */
|
||||||
|
|
||||||
ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI0_BASE, 0,
|
|
||||||
SH_SDHI_QUIRK_64BIT_BUF);
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
/* SDHI1/SDHI2 eMMC */
|
/* SDHI1/SDHI2 eMMC */
|
||||||
gpio_request(GPIO_GFN_SD1_DAT0, NULL);
|
gpio_request(GPIO_GFN_SD1_DAT0, NULL);
|
||||||
gpio_request(GPIO_GFN_SD1_DAT1, NULL);
|
gpio_request(GPIO_GFN_SD1_DAT1, NULL);
|
||||||
@@ -208,11 +201,6 @@ int board_mmc_init(bd_t *bis)
|
|||||||
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 */
|
||||||
|
|
||||||
ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI2_BASE, 1,
|
|
||||||
SH_SDHI_QUIRK_64BIT_BUF);
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
#if defined(CONFIG_R8A7795)
|
#if defined(CONFIG_R8A7795)
|
||||||
/* SDHI3 */
|
/* SDHI3 */
|
||||||
gpio_request(GPIO_GFN_SD3_DAT0, NULL); /* GP_4_9 */
|
gpio_request(GPIO_GFN_SD3_DAT0, NULL); /* GP_4_9 */
|
||||||
@@ -240,9 +228,7 @@ int board_mmc_init(bd_t *bis)
|
|||||||
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 */
|
||||||
|
|
||||||
ret = sh_sdhi_init(CONFIG_SYS_SH_SDHI3_BASE, 2,
|
return 0;
|
||||||
SH_SDHI_QUIRK_64BIT_BUF);
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user