summaryrefslogtreecommitdiff
path: root/chip/stm32/i2c-stm32l4.c
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-10-30 15:08:03 -0600
committerCommit Bot <commit-bot@chromium.org>2020-10-31 01:06:10 +0000
commitc52033d763d7b63978e3207a33725a2c9ff2aff3 (patch)
treefb9646377b325ed5d627b7ff2433334211911463 /chip/stm32/i2c-stm32l4.c
parent63e4dcbe22f2b987e3040a1a8a39720fb4cd55bf (diff)
downloadchrome-ec-c52033d763d7b63978e3207a33725a2c9ff2aff3.tar.gz
COIL: Rename SLEEP_MASK_I2C_PERIPHERAL
Rename SLEEP_MASK_I2C_PERIPHERAL and related comments. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Idaeefda102c603a38f128d820ed1f647069eaeea Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2511094 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip/stm32/i2c-stm32l4.c')
-rw-r--r--chip/stm32/i2c-stm32l4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/i2c-stm32l4.c b/chip/stm32/i2c-stm32l4.c
index b0304f375c..615b25f208 100644
--- a/chip/stm32/i2c-stm32l4.c
+++ b/chip/stm32/i2c-stm32l4.c
@@ -234,7 +234,7 @@ static void i2c_event_handler(int port)
/* Clear ADDR bit by writing to ADDRCF bit */
STM32_I2C_ICR(port) |= STM32_I2C_ICR_ADDRCF;
/* Inhibit stop mode when addressed until STOPF flag is set */
- disable_sleep(SLEEP_MASK_I2C_SLAVE);
+ disable_sleep(SLEEP_MASK_I2C_PERIPHERAL);
}
/*
@@ -262,7 +262,7 @@ static void i2c_event_handler(int port)
STM32_I2C_ICR(port) |= STM32_I2C_ICR_STOPCF;
/* No longer inhibit deep sleep after stop condition */
- enable_sleep(SLEEP_MASK_I2C_SLAVE);
+ enable_sleep(SLEEP_MASK_I2C_PERIPHERAL);
}
if (isr & STM32_I2C_ISR_NACK) {