diff mbox

[U-Boot] x86: Move CONFIG_ENV_IS_IN_SPI_FLASH to x86-common.h

Message ID 1427773864-6759-1-git-send-email-bmeng.cn@gmail.com
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Bin Meng March 31, 2015, 3:51 a.m. UTC
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.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 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(-)

Comments

Simon Glass April 1, 2015, 3:20 a.m. UTC | #1
On 30 March 2015 at 21:51, Bin Meng <bmeng.cn@gmail.com> wrote:
> 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.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
>  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 <sjg@chromium.org>
Simon Glass April 20, 2015, 4:02 a.m. UTC | #2
On 31 March 2015 at 21:20, Simon Glass <sjg@chromium.org> wrote:
> On 30 March 2015 at 21:51, Bin Meng <bmeng.cn@gmail.com> wrote:
>> 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.
>>
>> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
>> ---
>>
>>  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 <sjg@chromium.org>

Applied to u-boot-x86, thanks!
diff mbox

Patch

diff --git a/include/configs/chromebook_link.h b/include/configs/chromebook_link.h
index 7b460e8..2da0240 100644
--- a/include/configs/chromebook_link.h
+++ b/include/configs/chromebook_link.h
@@ -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" \
diff --git a/include/configs/crownbay.h b/include/configs/crownbay.h
index df32f2a..42042d1 100644
--- a/include/configs/crownbay.h
+++ b/include/configs/crownbay.h
@@ -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
 
diff --git a/include/configs/galileo.h b/include/configs/galileo.h
index 288acf3..f780b8f 100644
--- a/include/configs/galileo.h
+++ b/include/configs/galileo.h
@@ -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
 
diff --git a/include/configs/minnowmax.h b/include/configs/minnowmax.h
index 823e051..6dbae8f 100644
--- a/include/configs/minnowmax.h
+++ b/include/configs/minnowmax.h
@@ -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 */
diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h
index b7dd63e..918fe4d 100644
--- a/include/configs/x86-common.h
+++ b/include/configs/x86-common.h
@@ -209,7 +209,7 @@ 
 /*-----------------------------------------------------------------------
  * Environment configuration
  */
-#define CONFIG_ENV_IS_NOWHERE
+#define CONFIG_ENV_IS_IN_SPI_FLASH
 #define CONFIG_ENV_SIZE			0x01000
 
 /*-----------------------------------------------------------------------