[RFC PATCH v2 07/56] cros_ec: Add SPL Kconfigs for cros_ec features

Simon Glass sjg at chromium.org
Sat Feb 4 01:25:30 CET 2023


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 at chromium.org>
---

(no changes since v1)

 drivers/i2c/Kconfig | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 70ed69b22e1..347ba4d7822 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -97,6 +97,11 @@ 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
+	help
+	  Dummy option to ensure that this feature is not enabled in SPL.
+
 config I2C_CROS_EC_LDO
 	bool "Provide access to LDOs on the Chrome OS EC"
 	depends on CROS_EC
@@ -111,6 +116,11 @@ 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
+	help
+	  Dummy option to ensure that this feature is not enabled in SPL.
+
 config I2C_SET_DEFAULT_BUS_NUM
 	bool "Set default I2C bus number"
 	depends on DM_I2C
-- 
2.39.1.519.gcb327c4b5f-goog



More information about the U-Boot mailing list