diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2017-01-10 13:38:16 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-10 21:35:30 -0800 |
commit | d96460541addf75bd4c3c3a8e7b5de47cf89f2d0 (patch) | |
tree | a784e7c34e37d2b6f854710abd45796e4bb7e379 /chip/it83xx/registers.h | |
parent | d87ad06a6d44bd68e22417115d0a53f5f9d3fb20 (diff) | |
download | chrome-ec-d96460541addf75bd4c3c3a8e7b5de47cf89f2d0.tar.gz |
it83xx: adc: interrupt is used
We don't need to loop and waiting ADC's data valid flag
after the change was made.
Signed-off-by: Dino Li <dino.li@ite.com.tw>
BRANCH=none
BUG=none
TEST=1. We build a EC binary for PD EVB (declared two ADC channels
for VBUS measurement of PD task and priority is highest)
2. Use console command "adc" continually to read ADC channels
and check if any error.
Change-Id: I1379e0b4c9ef721c29cb053d7d85e1a8ece9471b
Reviewed-on: https://chromium-review.googlesource.com/421307
Commit-Ready: Dino Li <Dino.Li@ite.com.tw>
Tested-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/it83xx/registers.h')
-rw-r--r-- | chip/it83xx/registers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/it83xx/registers.h b/chip/it83xx/registers.h index a90b5b72f2..47f06991d3 100644 --- a/chip/it83xx/registers.h +++ b/chip/it83xx/registers.h @@ -379,6 +379,9 @@ #define CPU_INT_GROUP_9 249 #define IT83XX_CPU_INT_IRQ_249 9 +#define CPU_INT_GROUP_7 248 +#define IT83XX_CPU_INT_IRQ_248 7 + #define CPU_INT(irq) CONCAT2(IT83XX_CPU_INT_IRQ_, irq) /* --- INTC --- */ |