summaryrefslogtreecommitdiff
path: root/include/configs/evb_rk3399.h
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2019-12-21 10:54:34 +0300
committerKever Yang <kever.yang@rock-chips.com>2020-01-30 06:44:01 +0300
commit7c5f6d0aa4126ba74c0c8f95f916063418a2a130 (patch)
treea1c93837ebe5b48d9a97f24b9775aa2ef95521ca /include/configs/evb_rk3399.h
parent95052b4b4001647ac0edd3216f92737cc06b1622 (diff)
downloadu-boot-7c5f6d0aa4126ba74c0c8f95f916063418a2a130.tar.xz
rk3399: Check MMC env while defining it
rk3399 do support SPI flash as well, so there is a possibility of using flash environment for those usecases. So define env device for MMC only when it is used by specific configuration. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'include/configs/evb_rk3399.h')
-rw-r--r--include/configs/evb_rk3399.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/configs/evb_rk3399.h b/include/configs/evb_rk3399.h
index b9c4d683f4..c0b0358893 100644
--- a/include/configs/evb_rk3399.h
+++ b/include/configs/evb_rk3399.h
@@ -8,7 +8,9 @@
#include <configs/rk3399_common.h>
-#define CONFIG_SYS_MMC_ENV_DEV 0
+#if defined(CONFIG_ENV_IS_IN_MMC)
+# define CONFIG_SYS_MMC_ENV_DEV 0
+#endif
#define SDRAM_BANK_SIZE (2UL << 30)