Skip to contentSkip to conversation

vpl: make I2C and PCH options effective

RFC PATCH In review Pengpeng Hou 3 participants 3 messages Sep 4 – Sep 30

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 vpl: make I2C and PCH options effective

The VPL options are named VPL_I2C_SUPPORT and VPL_PCH_SUPPORT, but neither symbol has a consumer. The driver build uses CONFIG_$(PHASE_)I2C and CONFIG_$(PHASE_)PCH, which expand to VPL_I2C and VPL_PCH for this phase.

Rename the options to the names consumed by the build and update their defaults to the current SPL_I2C and TPL_PCH symbols. No in-tree defconfig sets the orphaned option names.

Fixes 747093dd4089 ("vpl: Add Kconfig options for VPL")
---
 common/spl/Kconfig.vpl | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
common/spl/Kconfig.vpl +5 -5
index 434562443ac..d4c5636f3ac 100644
@@ -139,11 +139,11 @@ config VPL_HASH
 	  this option to build system-specific drivers for hash acceleration
 	  as part of a VPL build.
 
-config VPL_I2C_SUPPORT
+config VPL_I2C
 	bool "Support I2C in VPL"
-	default y if SPL_I2C_SUPPORT
+	default y if SPL_I2C
 	help
-	  Enable support for the I2C bus in VPL. Vee SPL_I2C_SUPPORT for
+	  Enable support for the I2C bus in VPL. See SPL_I2C for
 	  details.
 
 config VPL_MMC
@@ -176,9 +176,9 @@ config VPL_MMC_WRITE
 	help
 	  Enable write access to MMC and SD Cards in VPL
 
-config VPL_PCH_SUPPORT
+config VPL_PCH
 	bool "Support PCH drivers"
-	default y if TPL_PCH_SUPPORT
+	default y if TPL_PCH
 	help
 	  Enable support for PCH (Platform Controller Hub) devices in VPL.
 	  These are used to set up GPIOs and the SPI peripheral early in
Signature · 1 line
2.50.1 (Apple Git-155)
Reviewed-by on v1 1/1
#1 lore raw

Hello Pengpeng Hou,

Quoted 8 lines · Pengpeng Hou

The VPL options are named VPL_I2C_SUPPORT and VPL_PCH_SUPPORT, but neither symbol has a consumer. The driver build uses CONFIG_$(PHASE_)I2C and CONFIG_$(PHASE_)PCH, which expand to VPL_I2C and VPL_PCH for this phase.

Rename the options to the names consumed by the build and update their defaults to the current SPL_I2C and TPL_PCH symbols. No in-tree defconfig sets the orphaned option names.

Quoted 5 lines
Fixes 747093dd4089 ("vpl: Add Kconfig options for VPL")
---
  common/spl/Kconfig.vpl | 10 +++++-----
  1 file changed, 5 insertions(+), 5 deletions(-)

Good catch, thanks!

bye,
Heiko

Signature · 5 lines
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: [email protected]
Geschäftsführer : Stefano Babic
#2 lore raw
In reply to Pengpeng Hou
Quoted 9 lines · Pengpeng Hou

The VPL options are named VPL_I2C_SUPPORT and VPL_PCH_SUPPORT, but neither symbol has a consumer. The driver build uses CONFIG_$(PHASE_)I2C and CONFIG_$(PHASE_)PCH, which expand to VPL_I2C and VPL_PCH for this phase.

Rename the options to the names consumed by the build and update their defaults to the current SPL_I2C and TPL_PCH symbols. No in-tree defconfig sets the orphaned option names.

[...]

Applied to u-boot/next, thanks!

[1/1] vpl: make I2C and PCH options effective

      commit: feda4dd9ee1c21f58d947a82b52b8628d7faee28
Signature · 1 line
Tom