diff mbox series

[v3,42/95] cros_ec: Add SPL Kconfigs for cros_ec features

Message ID 20230212231638.1134219-43-sjg@chromium.org
State RFC
Delegated to: Tom Rini
Headers show
Series RFC: Migrate to split config | expand

Commit Message

Simon Glass Feb. 12, 2023, 11:15 p.m. UTC
At present we rely on this not existing to avoid building various
EC features.

But with the new split configs this does not work. Add separates Kconfigs
instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v3:
- Use a consistent format for the comment

 drivers/i2c/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 427074bff83..ec533f31b1a 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -97,6 +97,9 @@  config I2C_CROS_EC_TUNNEL
 	  I2C or LPC). Some Chromebooks use this when the hardware design
 	  does not allow direct access to the main PMIC from the AP.
 
+config SPL_I2C_CROS_EC_TUNNEL
+	def_bool n  # Chrome OS EC tunnel I2C bus (SPL)
+
 config I2C_CROS_EC_LDO
 	bool "Provide access to LDOs on the Chrome OS EC"
 	depends on CROS_EC
@@ -111,6 +114,9 @@  config I2C_CROS_EC_LDO
 	avoid duplicating the logic in the TPS65090 regulator driver for
 	enabling/disabling an LDO.
 
+config SPL_I2C_CROS_EC_LDO
+	def_bool n  # Provide access to LDOs on the Chrome OS EC (SPL)
+
 config I2C_SET_DEFAULT_BUS_NUM
 	bool "Set default I2C bus number"
 	depends on DM_I2C