x86: Move CONFIG_ENV_IS_IN_SPI_FLASH to x86-common.h
PATCH 1/1 x86: Move CONFIG_ENV_IS_IN_SPI_FLASH to x86-common.h
Since all x86 boards use spi flash as its bootloader storage media, it makes sense to make CONFIG_ENV_IS_IN_SPI_FLASH a common option. So far only minnowmax board does not support it so undefine it in its board configuration file.
---
include/configs/chromebook_link.h | 4 ---- include/configs/crownbay.h | 4 ---- include/configs/galileo.h | 4 ---- include/configs/minnowmax.h | 4 ++++ include/configs/x86-common.h | 2 +- 5 files changed, 5 insertions(+), 13 deletions(-)
include/configs/chromebook_link.h +0 -4
@@ -64,11 +64,7 @@#define CONFIG_CMD_CROS_EC #define CONFIG_ARCH_EARLY_INIT_R -#undef CONFIG_ENV_IS_NOWHERE -#undef CONFIG_ENV_SIZE -#define CONFIG_ENV_SIZE 0x1000#define CONFIG_ENV_SECT_SIZE 0x1000 -#define CONFIG_ENV_IS_IN_SPI_FLASH #define CONFIG_ENV_OFFSET 0x003f8000#define CONFIG_STD_DEVICES_SETTINGS "stdin=usbkbd,vga,serial\0" \
include/configs/crownbay.h +0 -4
@@ -61,10 +61,6 @@#undef CONFIG_CFB_CONSOLE/* Environment configuration */ -#undef CONFIG_ENV_IS_NOWHERE -#undef CONFIG_ENV_SIZE -#define CONFIG_ENV_IS_IN_SPI_FLASH -#define CONFIG_ENV_SIZE 0x1000#define CONFIG_ENV_SECT_SIZE 0x1000#define CONFIG_ENV_OFFSET 0
include/configs/galileo.h +0 -4
@@ -63,10 +63,6 @@#define CONFIG_PHYLIB /* Environment configuration */ -#undef CONFIG_ENV_IS_NOWHERE -#undef CONFIG_ENV_SIZE -#define CONFIG_ENV_IS_IN_SPI_FLASH -#define CONFIG_ENV_SIZE 0x1000#define CONFIG_ENV_SECT_SIZE 0x1000#define CONFIG_ENV_OFFSET 0
include/configs/minnowmax.h +4 -0
@@ -69,4 +69,8 @@/* Avoid a warning in the Realtek Ethernet driver */ #define CONFIG_SYS_CACHELINE_SIZE 16 +/* Environment in SPI flash is unsupported for now */ +#undef CONFIG_ENV_IS_IN_SPI_FLASH +#define CONFIG_ENV_IS_NOWHERE +#endif /* __CONFIG_H */
include/configs/x86-common.h +1 -1
@@ -209,7 +209,7 @@/*----------------------------------------------------------------------- * Environment configuration */ -#define CONFIG_ENV_IS_NOWHERE +#define CONFIG_ENV_IS_IN_SPI_FLASH #define CONFIG_ENV_SIZE 0x01000/*-----------------------------------------------------------------------
Signature · 1 line
1.8.2.1
PATCH 1/1 x86: Move CONFIG_ENV_IS_IN_SPI_FLASH to x86-common.h
Quoted 6 lines · Bin Meng
Since all x86 boards use spi flash as its bootloader storage media, it makes sense to make
CONFIG_ENV_IS_IN_SPI_FLASHa common option. So far only minnowmax board does not support it so undefine it in its board configuration file.Signed-off-by Bin Meng <[email protected]>
Quoted 8 lines
---
include/configs/chromebook_link.h | 4 ---- include/configs/crownbay.h | 4 ---- include/configs/galileo.h | 4 ---- include/configs/minnowmax.h | 4 ++++ include/configs/x86-common.h | 2 +- 5 files changed, 5 insertions(+), 13 deletions(-)
PATCH 1/1 x86: Move CONFIG_ENV_IS_IN_SPI_FLASH to x86-common.h
Quoted 9 lines · Simon Glass
Quoted 8 lines · Bin Meng
Since all x86 boards use spi flash as its bootloader storage media, it makes sense to make
CONFIG_ENV_IS_IN_SPI_FLASHa common option. So far only minnowmax board does not support it so undefine it in its board configuration file.Signed-off-by Bin Meng <[email protected]>---
Quoted 8 lines
Quoted 6 lines
include/configs/chromebook_link.h | 4 ---- include/configs/crownbay.h | 4 ---- include/configs/galileo.h | 4 ---- include/configs/minnowmax.h | 4 ++++ include/configs/x86-common.h | 2 +- 5 files changed, 5 insertions(+), 13 deletions(-)Acked-by Simon Glass <[email protected]>
Applied to u-boot-x86, thanks!