diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/build.mk | 2 | ||||
-rw-r--r-- | common/ec_features.c | 2 | ||||
-rw-r--r-- | common/main.c | 2 | ||||
-rw-r--r-- | common/system.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/common/build.mk b/common/build.mk index 8e2784922e..e4e0fb151d 100644 --- a/common/build.mk +++ b/common/build.mk @@ -72,7 +72,7 @@ common-$(CONFIG_HOSTCMD_EVENTS)+=host_event_commands.o common-$(CONFIG_HOSTCMD_GET_UPTIME_INFO)+=uptime.o common-$(CONFIG_HOSTCMD_RTC)+=rtc.o common-$(CONFIG_I2C_DEBUG)+=i2c_trace.o -common-$(CONFIG_I2C_MASTER)+=i2c_master.o +common-$(CONFIG_I2C_CONTROLLER)+=i2c_master.o common-$(CONFIG_I2C_PERIPH)+=i2c_slave.o common-$(CONFIG_INDUCTIVE_CHARGING)+=inductive_charging.o common-$(CONFIG_KEYBOARD_PROTOCOL_8042)+=keyboard_8042.o \ diff --git a/common/ec_features.c b/common/ec_features.c index 2a04a7c71e..aca031fbd0 100644 --- a/common/ec_features.c +++ b/common/ec_features.c @@ -58,7 +58,7 @@ uint32_t get_feature_flags0(void) #ifdef CONFIG_COMMON_GPIO | EC_FEATURE_MASK_0(EC_FEATURE_GPIO) #endif -#ifdef CONFIG_I2C_MASTER +#ifdef CONFIG_I2C_CONTROLLER | EC_FEATURE_MASK_0(EC_FEATURE_I2C) #endif #ifdef CONFIG_CHARGER diff --git a/common/main.c b/common/main.c index 5bbe6f8a55..458327a3c2 100644 --- a/common/main.c +++ b/common/main.c @@ -181,7 +181,7 @@ test_mockable __keep int main(void) #ifdef CONFIG_HOSTCMD_X86 lpc_init_mask(); #endif - if (IS_ENABLED(CONFIG_I2C_MASTER)) { + if (IS_ENABLED(CONFIG_I2C_CONTROLLER)) { /* * Some devices (like the I2C keyboards, CBI) need I2C access * pretty early, so let's initialize the controller now. diff --git a/common/system.c b/common/system.c index d9a40f8099..469ee9f8b9 100644 --- a/common/system.c +++ b/common/system.c @@ -494,7 +494,7 @@ static void jump_to_image(uintptr_t init_addr) pd_prepare_sysjump(); #endif -#ifdef CONFIG_I2C_MASTER +#ifdef CONFIG_I2C_CONTROLLER /* Prepare I2C module for sysjump */ i2c_prepare_sysjump(); #endif |