summaryrefslogtreecommitdiff
path: root/drivers/i2c/Kconfig
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-08-19 06:12:25 +0300
committerTom Rini <trini@konsulko.com>2021-08-30 21:10:07 +0300
commit52c7e375966ee6e9af6a3d78092122d26a0e0184 (patch)
tree8ea4580a95632d3574675619c57fbadeddb357ba /drivers/i2c/Kconfig
parent55dabcc8f24598e2777f663de09ab55fbe1269da (diff)
downloadu-boot-52c7e375966ee6e9af6a3d78092122d26a0e0184.tar.xz
Convert CONFIG_SYS_I2C_EARLY_INIT to Kconfig
Convert SYS_I2C_EARLY_INIT to Kconfig, and make it depend on SPL_SYS_I2C_LEGACY. Remove the weak implementation as it's either something that needs to exist for real, or shouldn't be called. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/i2c/Kconfig')
-rw-r--r--drivers/i2c/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 1466f8dd93..f4df4bac5e 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -69,6 +69,13 @@ config TPL_SYS_I2C_LEGACY
Enable the legacy I2C subsystem and drivers in TPL. This is useful
in some size constrained situations.
+config SYS_I2C_EARLY_INIT
+ bool "Enable legacy I2C subsystem early in boot"
+ depends on BOARD_EARLY_INIT_F && SPL_SYS_I2C_LEGACY && SYS_I2C_MXC
+ help
+ Add the function prototype for i2c_early_init_f which is called in
+ board_early_init_f.
+
config I2C_CROS_EC_TUNNEL
tristate "Chrome OS EC tunnel I2C bus"
depends on CROS_EC