diff options
-rw-r--r-- | common/i2c_controller.c | 6 | ||||
-rw-r--r-- | include/system.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common/i2c_controller.c b/common/i2c_controller.c index 56c2a52f08..49a6cf0458 100644 --- a/common/i2c_controller.c +++ b/common/i2c_controller.c @@ -252,8 +252,8 @@ void i2c_lock(int port, int lock) irq_lock_key = irq_lock(); i2c_port_active_list |= 1 << port; - /* Ec cannot enter sleep if there's any i2c port active. */ - disable_sleep(SLEEP_MASK_I2C_MASTER); + /* EC cannot enter sleep if there's any i2c port active. */ + disable_sleep(SLEEP_MASK_I2C_CONTROLLER); irq_unlock(irq_lock_key); } else { @@ -262,7 +262,7 @@ void i2c_lock(int port, int lock) i2c_port_active_list &= ~BIT(port); /* Once there is no i2c port active, enable sleep bit of i2c. */ if (!i2c_port_active_list) - enable_sleep(SLEEP_MASK_I2C_MASTER); + enable_sleep(SLEEP_MASK_I2C_CONTROLLER); irq_unlock(irq_lock_key); diff --git a/include/system.h b/include/system.h index 4eed668e64..10484b512d 100644 --- a/include/system.h +++ b/include/system.h @@ -466,7 +466,7 @@ enum { */ SLEEP_MASK_AP_RUN = BIT(0), /* the main CPU is running */ SLEEP_MASK_UART = BIT(1), /* UART communication ongoing */ - SLEEP_MASK_I2C_MASTER = BIT(2), /* I2C master communication ongoing */ + SLEEP_MASK_I2C_CONTROLLER = BIT(2), /* I2C controller comms ongoing */ SLEEP_MASK_CHARGING = BIT(3), /* Charging loop ongoing */ SLEEP_MASK_USB_PWR = BIT(4), /* USB power loop ongoing */ SLEEP_MASK_USB_PD = BIT(5), /* USB PD device connected */ |