diff options
Diffstat (limited to 'include/configs/puma_rk3399.h')
-rw-r--r-- | include/configs/puma_rk3399.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/configs/puma_rk3399.h b/include/configs/puma_rk3399.h index 39d0786266..cb95ac9bd5 100644 --- a/include/configs/puma_rk3399.h +++ b/include/configs/puma_rk3399.h @@ -37,4 +37,18 @@ #define CONFIG_BMP_24BPP #define CONFIG_BMP_32BPP +/* + * We usually boot from SPI flash: This sets CONFIG_ENV_IS_IN_SPI_FLASH=y + * and tries to load the kernel from eMMC (mmc0) first. + * + * If we boot from SD card, we prefer to load the kernel from SD card (mmc1) + * first. + */ +#if !CONFIG_IS_ENABLED(ENV_IS_IN_SPI_FLASH) +#undef BOOT_TARGET_DEVICES +#define BOOT_TARGET_DEVICES(func) \ + func(MMC, mmc, 1) \ + func(MMC, mmc, 0) #endif + +#endif /* __PUMA_RK3399_H */ |