summaryrefslogtreecommitdiff
path: root/include/i2c.h
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 /include/i2c.h
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 'include/i2c.h')
-rw-r--r--include/i2c.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/i2c.h b/include/i2c.h
index 07867059f6..2a8649e95e 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -610,6 +610,10 @@ extern struct acpi_ops i2c_acpi_ops;
*/
int acpi_i2c_of_to_plat(struct udevice *dev);
+#ifdef CONFIG_SYS_I2C_EARLY_INIT
+void i2c_early_init_f(void);
+#endif
+
#if !CONFIG_IS_ENABLED(DM_I2C)
/*
@@ -756,9 +760,6 @@ extern struct i2c_bus_hose i2c_bus[];
* Initialization, must be called once on start up, may be called
* repeatedly to change the speed and slave addresses.
*/
-#ifdef CONFIG_SYS_I2C_EARLY_INIT
-void i2c_early_init_f(void);
-#endif
void i2c_init(int speed, int slaveaddr);
void i2c_init_board(void);