projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fd6bad
)
rockchip: Avoid using MMC code when not booting from MMC
author
Simon Glass
<sjg@chromium.org>
Fri, 22 Jan 2016 02:43:32 +0000
(19:43 -0700)
committer
Simon Glass
<sjg@chromium.org>
Fri, 22 Jan 2016 03:42:34 +0000
(20:42 -0700)
This saves some code space in SPL which is useful on jerry.
Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/rk3288-board-spl.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/rk3288-board-spl.c
b/arch/arm/mach-rockchip/rk3288-board-spl.c
index 8199cad3facc20251984605ca4005e91c0b8e093..b2c57292a75d55d39ff13046072107685f35231e 100644
(file)
--- 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;
}