sunxi: enable env on spi flash when spi flash is available
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
This commit is contained in:
@@ -191,6 +191,19 @@
|
||||
|
||||
#define CONFIG_FAT_WRITE /* enable write access */
|
||||
|
||||
/* SPI Flash environment */
|
||||
#ifdef CONFIG_SPI_FLASH
|
||||
#undef CONFIG_ENV_SIZE
|
||||
#define CONFIG_ENV_SIZE 0x8000
|
||||
#define CONFIG_ENV_SECT_SIZE 0x1000
|
||||
#ifdef CONFIG_ENV_IS_IN_MMC
|
||||
#undef CONFIG_ENV_IS_IN_MMC
|
||||
#endif
|
||||
#define CONFIG_ENV_IS_IN_SPI_FLASH
|
||||
#undef CONFIG_ENV_OFFSET
|
||||
#define CONFIG_ENV_OFFSET 0x000f8000
|
||||
#endif
|
||||
|
||||
#define CONFIG_SPL_FRAMEWORK
|
||||
|
||||
#define CONFIG_SPL_BOARD_LOAD_IMAGE
|
||||
|
||||
Reference in New Issue
Block a user