Commit b5557ffc0f751214d26e55da16396d9bfe29f485
Committed by
Philipp Tomsich
1 parent
4f70039b36
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
rockchip: board: puma_rk3399: make env location selectable via Kconfig
The environment storage location is selectable via Kconfig. We support eMMC, SD and SPI-NOR as location for U-Boot. This adds support to store the environment in the SPI-NOR additional to the default eMMC location. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff
include/configs/puma_rk3399.h
... | ... | @@ -17,7 +17,15 @@ |
17 | 17 | #undef CONFIG_ENV_OFFSET |
18 | 18 | #define CONFIG_ENV_OFFSET (240 * 1024) |
19 | 19 | |
20 | +#if defined(CONFIG_ENV_IS_IN_MMC) | |
20 | 21 | #define CONFIG_SYS_MMC_ENV_DEV 1 |
22 | +#elif defined(CONFIG_ENV_IS_IN_SPI_FLASH) | |
23 | +#define CONFIG_ENV_SECT_SIZE (8 * 1024) | |
24 | +#define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS | |
25 | +#define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS | |
26 | +#define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE | |
27 | +#define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED | |
28 | +#endif | |
21 | 29 | |
22 | 30 | #define SDRAM_BANK_SIZE (2UL << 30) |
23 | 31 |