From: Jagan Teki Date: Sat, 21 Dec 2019 07:54:34 +0000 (+0530) Subject: rk3399: Check MMC env while defining it X-Git-Tag: v2020.04-rc2~21^2~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7c5f6d0aa4126ba74c0c8f95f916063418a2a130;p=oweals%2Fu-boot.git 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 Reviewed-by: Kever Yang --- 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 -#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)