summaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/rk3288-board-spl.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-21 19:43:32 -0700
committerSimon Glass <sjg@chromium.org>2016-01-21 20:42:34 -0700
commit1e724f8ea8b72f83d08e129d73ee21d2c8c337bc (patch)
treec233272c43b0a5cc0f62d138c60b0c2dfecdb239 /arch/arm/mach-rockchip/rk3288-board-spl.c
parent5fd6badbd265ef45d3e1faebe5868426ab69595c (diff)
rockchip: Avoid using MMC code when not booting from MMC
This saves some code space in SPL which is useful on jerry. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/mach-rockchip/rk3288-board-spl.c')
-rw-r--r--arch/arm/mach-rockchip/rk3288-board-spl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.c
index 8199cad3fa..b2c57292a7 100644
--- a/arch/arm/mach-rockchip/rk3288-board-spl.c
+++ b/arch/arm/mach-rockchip/rk3288-board-spl.c
@@ -113,6 +113,7 @@ static void configure_l2ctlr(void)
static int configure_emmc(struct udevice *pinctrl)
{
+#ifdef CONFIG_SPL_MMC_SUPPORT
struct gpio_desc desc;
int ret;
@@ -142,6 +143,7 @@ static int configure_emmc(struct udevice *pinctrl)
debug("gpio value ret=%d\n", ret);
return ret;
}
+#endif
return 0;
}