summaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-21 19:45:13 -0700
committerSimon Glass <sjg@chromium.org>2016-01-21 20:42:37 -0700
commitf23cf909ee53a9284566f63e0a120bdfb9628561 (patch)
treed342309fd091b714c7e1ed13a85b91fe154890ee /arch/arm/mach-rockchip
parentaffd4a9fa0c4f84758b2d2cdf801256f2c566bbc (diff)
downloadu-boot-imx-f23cf909ee53a9284566f63e0a120bdfb9628561.zip
u-boot-imx-f23cf909ee53a9284566f63e0a120bdfb9628561.tar.gz
u-boot-imx-f23cf909ee53a9284566f63e0a120bdfb9628561.tar.bz2
rockchip: spl: Drop MMC support code when not needed
When the board does not use MMC SPL this code is a waste of space. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/mach-rockchip')
-rw-r--r--arch/arm/mach-rockchip/rk3288-board-spl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.c
index f61eeab..9fdd37d 100644
--- a/arch/arm/mach-rockchip/rk3288-board-spl.c
+++ b/arch/arm/mach-rockchip/rk3288-board-spl.c
@@ -111,9 +111,9 @@ static void configure_l2ctlr(void)
write_l2ctlr(l2ctlr);
}
+#ifdef CONFIG_SPL_MMC_SUPPORT
static int configure_emmc(struct udevice *pinctrl)
{
-#ifdef CONFIG_SPL_MMC_SUPPORT
struct gpio_desc desc;
int ret;
@@ -143,10 +143,10 @@ static int configure_emmc(struct udevice *pinctrl)
debug("gpio value ret=%d\n", ret);
return ret;
}
-#endif
return 0;
}
+#endif
void board_init_f(ulong dummy)
{
@@ -244,6 +244,7 @@ void spl_board_init(void)
debug("%s: Cannot find pinctrl device\n", __func__);
goto err;
}
+#ifdef CONFIG_SPL_MMC_SUPPORT
ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_SDCARD);
if (ret) {
debug("%s: Failed to set up SD card\n", __func__);
@@ -254,6 +255,7 @@ void spl_board_init(void)
debug("%s: Failed to set up eMMC\n", __func__);
goto err;
}
+#endif
/* Enable debug UART */
ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_UART_DBG);