Skip to contentSkip to conversation

x86: Kconfig: Move platform options forward

PATCH New Bin Meng 2 participants 12 messages Apr 27, 2015 – Apr 28, 2015 1 message not in the archive x86

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Bin Meng

author
#1 lore raw

PATCH 2/5 x86: Kconfig: Move platform options forward

Move platform-specific options under in arch/x86/Kconfig forward right after the board-specific options but before any architecture-specific options. When it comes to the same Kconfig option, board-specific one takes take the highest precedence, then platform-specific one, and finally architecture-specific one.

---

 arch/x86/Kconfig | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)
arch/x86/Kconfig +9 -10
index c3cc144..43062cd 100644
@@ -30,6 +30,15 @@ source "board/coreboot/Kconfig"
 source "board/google/Kconfig"
 source "board/intel/Kconfig"
 
+# platform-specific options below
+source "arch/x86/cpu/baytrail/Kconfig"
+source "arch/x86/cpu/coreboot/Kconfig"
+source "arch/x86/cpu/ivybridge/Kconfig"
+source "arch/x86/cpu/quark/Kconfig"
+source "arch/x86/cpu/queensbay/Kconfig"
+
+# architecture-specific options below
+
 config DM_SPI
 	default y
 
@@ -358,16 +367,6 @@ config FSP_TEMP_RAM_ADDR
 	  Stack top address which is used in FspInit after DRAM is ready and
 	  CAR is disabled.
 
-source "arch/x86/cpu/baytrail/Kconfig"
-
-source "arch/x86/cpu/coreboot/Kconfig"
-
-source "arch/x86/cpu/ivybridge/Kconfig"
-
-source "arch/x86/cpu/quark/Kconfig"
-
-source "arch/x86/cpu/queensbay/Kconfig"
-
 config TSC_CALIBRATION_BYPASS
 	bool "Bypass Time-Stamp Counter (TSC) calibration"
 	default n
Signature · 1 line
1.8.2.1
#2 lore raw

PATCH 2/5 x86: Kconfig: Move platform options forward

Quoted 11 lines · Bin Meng

Move platform-specific options under in arch/x86/Kconfig forward right after the board-specific options but before any architecture-specific options. When it comes to the same Kconfig option, board-specific one takes take the highest precedence, then platform-specific one, and finally architecture-specific one.

---

 arch/x86/Kconfig | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)
#3 lore raw

PATCH 2/5 x86: Kconfig: Move platform options forward

Quoted 7 lines · Simon Glass
Quoted 6 lines · Bin Meng

Move platform-specific options under in arch/x86/Kconfig forward right after the board-specific options but before any architecture-specific options. When it comes to the same Kconfig option, board-specific one takes take the highest precedence, then platform-specific one, and finally architecture-specific one.

Quoted 7 lines
Quoted 5 lines

---

 arch/x86/Kconfig | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

Applied to u-boot-x86, thanks!

author
#4 lore raw

PATCH 3/5 x86: Kconfig: MARK_GRAPHICS_MEM_WRCOMB cosmetics

In reply to a message not in the archive

Remove the ending period of the MARK_GRAPHICS_MEM_WRCOMB option. Also fix the indention of its help text.

---

 arch/x86/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
arch/x86/Kconfig +4 -4
index 43062cd..2387fb7 100644
@@ -181,12 +181,12 @@ config X86_RAMTEST
 	  detecting obvious failures.
 
 config MARK_GRAPHICS_MEM_WRCOMB
-	bool "Mark graphics memory as write-combining."
+	bool "Mark graphics memory as write-combining"
 	default n
 	help
-	 The graphics performance may increase if the graphics
-	 memory is set as write-combining cache type. This option
-	 enables marking the graphics memory as write-combining.
+	  The graphics performance may increase if the graphics
+	  memory is set as write-combining cache type. This option
+	  enables marking the graphics memory as write-combining.
 
 menu "Display"
 
Signature · 1 line
1.8.2.1
#6 lore raw

PATCH 3/5 x86: Kconfig: MARK_GRAPHICS_MEM_WRCOMB cosmetics

Quoted 11 lines · Simon Glass
Quoted 8 lines · Bin Meng

Remove the ending period of the MARK_GRAPHICS_MEM_WRCOMB option. Also fix the indention of its help text.

---

 arch/x86/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Applied to u-boot-x86, thanks!

author
#7 lore raw

PATCH 4/5 x86: Kconfig: Move DM_SPI & DM_SPI_FLASH to arch/Kconfig

In reply to a message not in the archive

Since all x86 boards have been converted to use DM_SPI and DM_SPI_FLASH, move them to arch/Kconfig x86 section.

---

 arch/Kconfig     | 2 ++
 arch/x86/Kconfig | 6 ------
 2 files changed, 2 insertions(+), 6 deletions(-)
arch/Kconfig +2 -0
index 1102346..200588a 100644
@@ -93,6 +93,8 @@ config X86
 	select DM
 	select DM_SERIAL
 	select DM_GPIO
+	select DM_SPI
+	select DM_SPI_FLASH
 
 endchoice
 
arch/x86/Kconfig +0 -6
index 2387fb7..f3a600e 100644
@@ -39,12 +39,6 @@ source "arch/x86/cpu/queensbay/Kconfig"
 
 # architecture-specific options below
 
-config DM_SPI
-	default y
-
-config DM_SPI_FLASH
-	default y
-
 config SYS_MALLOC_F_LEN
 	default 0x800
 
Signature · 1 line
1.8.2.1
#8 lore raw

PATCH 4/5 x86: Kconfig: Move DM_SPI & DM_SPI_FLASH to arch/Kconfig

Quoted 10 lines · Bin Meng

Since all x86 boards have been converted to use DM_SPI and DM_SPI_FLASH, move them to arch/Kconfig x86 section.

---

 arch/Kconfig     | 2 ++
 arch/x86/Kconfig | 6 ------
 2 files changed, 2 insertions(+), 6 deletions(-)
#9 lore raw

PATCH 4/5 x86: Kconfig: Move DM_SPI & DM_SPI_FLASH to arch/Kconfig

Quoted 7 lines · Simon Glass
Quoted 6 lines · Bin Meng

Since all x86 boards have been converted to use DM_SPI and DM_SPI_FLASH, move them to arch/Kconfig x86 section.

---

Quoted 6 lines
Quoted 4 lines
 arch/Kconfig     | 2 ++
 arch/x86/Kconfig | 6 ------
 2 files changed, 2 insertions(+), 6 deletions(-)

Applied to u-boot-x86, thanks!

author
#10 lore raw

PATCH 5/5 x86: Kconfig: Remove deprecated CONFIG_SYS_EXTRA_OPTIONS

In reply to a message not in the archive

Currently all x86 boards still use CONFIG_SYS_EXTRA_OPTIONS to define the text base address. Since it is deprecated, just remove it and use CONFIG_SYS_TEXT_BASE directly.

---

 Kconfig                                | 2 +-
 board/coreboot/coreboot/Kconfig        | 3 +++
 board/google/chromebook_link/Kconfig   | 3 +++
 board/google/chromebox_panther/Kconfig | 3 +++
 board/intel/crownbay/Kconfig           | 3 +++
 board/intel/galileo/Kconfig            | 3 +++
 board/intel/minnowmax/Kconfig          | 3 +++
 configs/chromebook_link_defconfig      | 1 -
 configs/chromebox_panther_defconfig    | 1 -
 configs/coreboot-x86_defconfig         | 1 -
 configs/crownbay_defconfig             | 1 -
 configs/galileo_defconfig              | 1 -
 configs/minnowmax_defconfig            | 1 -
 13 files changed, 19 insertions(+), 7 deletions(-)
Kconfig +1 -1
index 41d4784..85faff7 100644
@@ -178,7 +178,7 @@ config SYS_EXTRA_OPTIONS
 	  new boards should not use this option.
 
 config SYS_TEXT_BASE
-	depends on SPARC || ARC
+	depends on SPARC || ARC || X86
 	hex "Text Base"
 	help
 	  TODO: Move CONFIG_SYS_TEXT_BASE for all the architecture
board/coreboot/coreboot/Kconfig +3 -0
index 981de1f..6a04158 100644
@@ -9,6 +9,9 @@ config SYS_VENDOR
 config SYS_SOC
 	default "coreboot"
 
+config SYS_TEXT_BASE
+	default 0x01110000
+
 comment "coreboot-specific options"
 
 config SYS_CONFIG_NAME
board/google/chromebook_link/Kconfig +3 -0
index ea45472..9c8d020 100644
@@ -12,6 +12,9 @@ config SYS_SOC
 config SYS_CONFIG_NAME
 	default "chromebook_link"
 
+config SYS_TEXT_BASE
+	default 0xfff00000
+
 config BOARD_SPECIFIC_OPTIONS # dummy
 	def_bool y
 	select X86_RESET_VECTOR
board/google/chromebox_panther/Kconfig +3 -0
index 11df55a..e3604eb 100644
@@ -12,6 +12,9 @@ config SYS_SOC
 config SYS_CONFIG_NAME
 	default "chromebox_panther"
 
+config SYS_TEXT_BASE
+	default 0xfff00000
+
 # Panther actually uses haswell, not ivybridge, so this is just a placeholder
 config BOARD_SPECIFIC_OPTIONS # dummy
 	def_bool y
board/intel/crownbay/Kconfig +3 -0
index 762663a..b30701a 100644
@@ -12,6 +12,9 @@ config SYS_SOC
 config SYS_CONFIG_NAME
 	default "crownbay"
 
+config SYS_TEXT_BASE
+	default 0xfff00000
+
 config BOARD_SPECIFIC_OPTIONS # dummy
 	def_bool y
 	select X86_RESET_VECTOR
board/intel/galileo/Kconfig +3 -0
index 85afbbc..6515bac 100644
@@ -12,6 +12,9 @@ config SYS_SOC
 config SYS_CONFIG_NAME
 	default "galileo"
 
+config SYS_TEXT_BASE
+	default 0xfff10000
+
 config BOARD_SPECIFIC_OPTIONS # dummy
 	def_bool y
 	select X86_RESET_VECTOR
board/intel/minnowmax/Kconfig +3 -0
index 43c50a5..f2a0b71 100644
@@ -12,6 +12,9 @@ config SYS_SOC
 config SYS_CONFIG_NAME
 	default "minnowmax"
 
+config SYS_TEXT_BASE
+	default 0xfff00000
+
 config BOARD_SPECIFIC_OPTIONS # dummy
 	def_bool y
 	select X86_RESET_VECTOR
configs/chromebook_link_defconfig +0 -1
index 9cfc65b..81222d2 100644
@@ -1,4 +1,3 @@
-CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0xfff00000"
 CONFIG_X86=y
 CONFIG_VENDOR_GOOGLE=y
 CONFIG_TARGET_CHROMEBOOK_LINK=y
configs/chromebox_panther_defconfig +0 -1
index c4db232..91189c9 100644
@@ -1,4 +1,3 @@
-CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0xfff00000"
 CONFIG_X86=y
 CONFIG_VENDOR_GOOGLE=y
 CONFIG_TARGET_CHROMEBOX_PANTHER=y
configs/coreboot-x86_defconfig +0 -1
index eb192ae..799853f 100644
@@ -1,4 +1,3 @@
-CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0x01110000"
 CONFIG_X86=y
 CONFIG_VENDOR_COREBOOT=y
 CONFIG_TARGET_COREBOOT=y
configs/crownbay_defconfig +0 -1
index de84650..61d1fcc 100644
@@ -1,4 +1,3 @@
-CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0xfff00000"
 CONFIG_X86=y
 CONFIG_VENDOR_INTEL=y
 CONFIG_TARGET_CROWNBAY=y
configs/galileo_defconfig +0 -1
index 787e15f..1a54ba5 100644
@@ -1,4 +1,3 @@
-CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0xfff10000"
 CONFIG_X86=y
 CONFIG_VENDOR_INTEL=y
 CONFIG_TARGET_GALILEO=y
configs/minnowmax_defconfig +0 -1
index c4dbfca..c59f4ac 100644
@@ -1,4 +1,3 @@
-CONFIG_SYS_EXTRA_OPTIONS="SYS_TEXT_BASE=0xfff00000"
 CONFIG_X86=y
 CONFIG_VENDOR_INTEL=y
 CONFIG_TARGET_MINNOWMAX=y
Signature · 1 line
1.8.2.1
#11 lore raw

PATCH 5/5 x86: Kconfig: Remove deprecated CONFIG_SYS_EXTRA_OPTIONS

Quoted 7 lines · Bin Meng

Currently all x86 boards still use CONFIG_SYS_EXTRA_OPTIONS to define the text base address. Since it is deprecated, just remove it and use CONFIG_SYS_TEXT_BASE directly.

---

Quoted 14 lines
 Kconfig                                | 2 +-
 board/coreboot/coreboot/Kconfig        | 3 +++
 board/google/chromebook_link/Kconfig   | 3 +++
 board/google/chromebox_panther/Kconfig | 3 +++
 board/intel/crownbay/Kconfig           | 3 +++
 board/intel/galileo/Kconfig            | 3 +++
 board/intel/minnowmax/Kconfig          | 3 +++
 configs/chromebook_link_defconfig      | 1 -
 configs/chromebox_panther_defconfig    | 1 -
 configs/coreboot-x86_defconfig         | 1 -
 configs/crownbay_defconfig             | 1 -
 configs/galileo_defconfig              | 1 -
 configs/minnowmax_defconfig            | 1 -
 13 files changed, 19 insertions(+), 7 deletions(-)
#12 lore raw

PATCH 5/5 x86: Kconfig: Remove deprecated CONFIG_SYS_EXTRA_OPTIONS

Quoted 23 lines · Simon Glass
Quoted 7 lines · Bin Meng

Currently all x86 boards still use CONFIG_SYS_EXTRA_OPTIONS to define the text base address. Since it is deprecated, just remove it and use CONFIG_SYS_TEXT_BASE directly.

---

Quoted 14 lines
 Kconfig                                | 2 +-
 board/coreboot/coreboot/Kconfig        | 3 +++
 board/google/chromebook_link/Kconfig   | 3 +++
 board/google/chromebox_panther/Kconfig | 3 +++
 board/intel/crownbay/Kconfig           | 3 +++
 board/intel/galileo/Kconfig            | 3 +++
 board/intel/minnowmax/Kconfig          | 3 +++
 configs/chromebook_link_defconfig      | 1 -
 configs/chromebox_panther_defconfig    | 1 -
 configs/coreboot-x86_defconfig         | 1 -
 configs/crownbay_defconfig             | 1 -
 configs/galileo_defconfig              | 1 -
 configs/minnowmax_defconfig            | 1 -
 13 files changed, 19 insertions(+), 7 deletions(-)
Quoted 1 line

Applied to u-boot-x86, thanks!