sunxi: enable env on spi flash when spi flash is available

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
This commit is contained in:
Icenowy Zheng
2017-05-21 14:18:00 +08:00
parent 24f72f61a9
commit d3205f02ce
+13
View File
@@ -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