summaryrefslogtreecommitdiff
path: root/chip/max32660/hwtimer_chip.c
diff options
context:
space:
mode:
authorJerry Bradshaw <jerry.bradshaw@maximintegrated.com>2019-11-27 11:13:04 -0600
committerCommit Bot <commit-bot@chromium.org>2020-02-26 23:34:15 +0000
commit5d50b591cc40f23a388bfef3bdab3b34c170732b (patch)
tree40e93e5d1c626d94ca80173aee51fa208e8a128b /chip/max32660/hwtimer_chip.c
parentba216cfef2a005717938b28ceab15b79406f7f3b (diff)
downloadchrome-ec-5d50b591cc40f23a388bfef3bdab3b34c170732b.tar.gz
max32660: add I2C board support for stand-alone read transactions
Adds support for solitary I2C board read transactions that are not preceded with an I2C write. BRANCH=none BUG=none TEST=Slave tested with EC CMDs and board cmds sent from a custom written EC HOST using another MAX32660 device as an I2C Master. Tested with Raspberry PI that emulates EC HOST and board commands. Change-Id: I653fd2bd9d4799c7e9cec4561906f0afe92c458c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1939779 Reviewed-by: Jes Klinke <jbk@chromium.org> Reviewed-by: Harry Cutts <hcutts@chromium.org> Reviewed-by: Tai-Hsu Lin <sheckylin@chromium.org> Tested-by: Tai-Hsu Lin <sheckylin@chromium.org> Commit-Queue: Harry Cutts <hcutts@chromium.org>
Diffstat (limited to 'chip/max32660/hwtimer_chip.c')
-rw-r--r--chip/max32660/hwtimer_chip.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/chip/max32660/hwtimer_chip.c b/chip/max32660/hwtimer_chip.c
index b2f0643e0f..5417e161b2 100644
--- a/chip/max32660/hwtimer_chip.c
+++ b/chip/max32660/hwtimer_chip.c
@@ -159,7 +159,11 @@ static void __timer_event_isr(void)
process_timers(NOT_ROLLOVER_EVENT);
}
}
-DECLARE_IRQ(EC_TMR1_IRQn, __timer_event_isr, 1);
+/*
+ * Declare the EC Timer lower in priority than the I2C interrupt. This
+ * allows the I2C driver to process time sensitive interrupts.
+ */
+DECLARE_IRQ(EC_TMR1_IRQn, __timer_event_isr, 2);
static void init_timer(mxc_tmr_regs_t *timer, enum tmr_pres prescaler,
enum tmr_mode mode, uint32_t count)