diff options
author | Wealian Liao <whliao@nuvoton.corp-partner.google.com> | 2020-09-24 17:37:53 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-05 10:07:39 +0000 |
commit | fe6577ffb515ef35af32a109e2b0832ea6a24018 (patch) | |
tree | 3cbff5ff0d9b47578c81db3f171e6ebecca77f57 /baseboard/dedede/variant_ec_npcx796fc.c | |
parent | e68cb1ddcbdd519903af9f677434cc16d4fb513d (diff) | |
download | chrome-ec-fe6577ffb515ef35af32a109e2b0832ea6a24018.tar.gz |
npcx: add ADC support for NPCX9 and remove the deassertion threshold
1. Two more ADC channels are added to NPCX9.
2. Remove the three de-assertion threshold detectors in the ADC module because
this function is not very useful from the application point of view.
3. Add three more threshold event detectors (from 3 to 6.)
BRANCH=none
BUG=b:165777478
TEST=pass "make buildall"
TEST=Read all ADC channels by the console command 'ADC'.
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I64cc9caf8be7e7546e161931ed42d0ea4dda4b47
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2434603
Tested-by: CH Lin <chlin56@nuvoton.com>
Reviewed-by: caveh jalali <caveh@chromium.org>
Commit-Queue: CH Lin <chlin56@nuvoton.com>
Diffstat (limited to 'baseboard/dedede/variant_ec_npcx796fc.c')
-rw-r--r-- | baseboard/dedede/variant_ec_npcx796fc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/baseboard/dedede/variant_ec_npcx796fc.c b/baseboard/dedede/variant_ec_npcx796fc.c index 23e38519f8..878a1ea5a0 100644 --- a/baseboard/dedede/variant_ec_npcx796fc.c +++ b/baseboard/dedede/variant_ec_npcx796fc.c @@ -60,7 +60,6 @@ const struct npcx_adc_thresh_t adc_pp3300_a_pgood_high = { .adc_ch = ADC_VSNS_PP3300_A, .adc_thresh_cb = pp3300_a_pgood_high, .thresh_assert = 2700, - .thresh_deassert = -1, }; const struct npcx_adc_thresh_t adc_pp3300_a_pgood_low = { @@ -68,7 +67,6 @@ const struct npcx_adc_thresh_t adc_pp3300_a_pgood_low = { .adc_thresh_cb = pp3300_a_pgood_low, .lower_or_higher = 1, .thresh_assert = 600, - .thresh_deassert = -1, }; static void set_up_adc_irqs(void) |