mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
55dabcc8f2
commit
52c7e37596
31 changed files with 33 additions and 36 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue