aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2018-01-04 15:23:32 +0100
committerJaehoon Chung <jh80.chung@samsung.com>2018-01-12 18:11:24 +0900
commitd6400c3f8520bb9a203fe397039279c80f093c27 (patch)
tree4b6aa1319eefc5fb45162cede548c951902d12f6 /cmd
parent58a6fb7b04963d1bf353b66e27f3084037babd6c (diff)
downloadu-boot-d6400c3f8520bb9a203fe397039279c80f093c27.zip
u-boot-d6400c3f8520bb9a203fe397039279c80f093c27.tar.gz
u-boot-d6400c3f8520bb9a203fe397039279c80f093c27.tar.bz2
mmc: add a Kconfig option to enable the support for MMC write operations
This allows using CONFIG_IS_ENABLED(MMC_WRITE) to compile out code needed only if write support is required. The option is added for u-boot and for SPL Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mvebu/bubt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c
index a1997ac..23fb8cd 100644
--- a/cmd/mvebu/bubt.c
+++ b/cmd/mvebu/bubt.c
@@ -110,7 +110,7 @@ static ulong get_load_addr(void)
/********************************************************************
* eMMC services
********************************************************************/
-#ifdef CONFIG_DM_MMC
+#if CONFIG_IS_ENABLED(DM_MMC) && CONFIG_IS_ENABLED(MMC_WRITE)
static int mmc_burn_image(size_t image_size)
{
struct mmc *mmc;