summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-01-05 17:08:19 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-06 23:07:44 +0000
commitade6b1e007428e85dc9b69e9a9c259bc6622f0d4 (patch)
tree1804c0e4eeb027c4d59301c6086751189c728c4d /chip
parent9b36fc44ad92c9524aece3830dc6fd76acd4945a (diff)
downloadchrome-ec-ade6b1e007428e85dc9b69e9a9c259bc6622f0d4.tar.gz
coil: rename sleepmasks
BUG=b:175244613 TEST=make buildall -j Change-Id: I693fa068dc9bbf4babb1a63e35d4536f5eba1e88 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2613460 Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/g/i2cs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/g/i2cs.c b/chip/g/i2cs.c
index 6bebd1d784..9aa73d18cb 100644
--- a/chip/g/i2cs.c
+++ b/chip/g/i2cs.c
@@ -273,7 +273,7 @@ void __attribute__((used)) _i2cs_write_complete_int(void)
GWRITE_FIELD(I2CS, INT_STATE, INTR_WRITE_COMPLETE, 1);
/* We're receiving some bytes, so don't sleep */
- disable_sleep(SLEEP_MASK_I2C_SLAVE);
+ disable_sleep(SLEEP_MASK_I2C_PERIPH);
if (write_complete_handler_) {
uint16_t bytes_written;
@@ -330,7 +330,7 @@ void __attribute__((used)) _i2cs_write_complete_int(void)
* disabled again in the next I2CS interrupt.
*/
delay_sleep_by(1 * SECOND);
- enable_sleep(SLEEP_MASK_I2C_SLAVE);
+ enable_sleep(SLEEP_MASK_I2C_PERIPH);
}
DECLARE_IRQ(GC_IRQNUM_I2CS0_INTR_WRITE_COMPLETE_INT,
_i2cs_write_complete_int, 1);