diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index f4489fad6d..fcecd0bfca 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -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