summaryrefslogtreecommitdiff
path: root/board/wheatley/board.c
diff options
context:
space:
mode:
authorMulin Chao <mlchao@nuvoton.com>2016-02-15 15:53:28 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-02-17 02:02:03 -0800
commit38c64408f77a9efbf39091cf7d34e185272673c3 (patch)
tree1b671d4f6dc3932dd53ea7a7cbb6d727b28d45a8 /board/wheatley/board.c
parent86bcc30068b44ec47660a7a2a68221ad3ba6666b (diff)
downloadchrome-ec-38c64408f77a9efbf39091cf7d34e185272673c3.tar.gz
wheatley / nuc: Modified the internal ref voltage of ADC to 2.816V
In order to prevent the influence of the deviation of AVCC during ADC conversion, the internal reference voltage (Vref) of ADC is fixed to 2.816V even it derives from AVCC. Modified sources: 1. wheatley/board.c: Modified max adc voltage of ADC to 28.160V. 2. adc_chip.h: Modified internal ref voltage of ADC to 2.816V. BUG=chrome-os-partner:34346 TEST=make buildall -j; test nuvoton IC specific drivers BRANCH=none Change-Id: Ib514f4bdc114802870eb3c77c650e18c05eb9617 Signed-off-by: Mulin Chao <mlchao@nuvoton.com> Reviewed-on: https://chromium-review.googlesource.com/327046 Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/wheatley/board.c')
-rw-r--r--board/wheatley/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/wheatley/board.c b/board/wheatley/board.c
index e8166903c1..e0947fc933 100644
--- a/board/wheatley/board.c
+++ b/board/wheatley/board.c
@@ -111,8 +111,8 @@ BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT);
/* ADC channels */
const struct adc_t adc_channels[] = {
- /* Vbus sensing. Converted to mV, full ADC is equivalent to 33V. */
- [ADC_VBUS] = {"VBUS", NPCX_ADC_CH1, 33000, ADC_READ_MAX+1, 0},
+ /* Vbus sensing. Converted to mV, full ADC is equivalent to 28.16V. */
+ [ADC_VBUS] = {"VBUS", NPCX_ADC_CH1, 28160, ADC_READ_MAX+1, 0},
/* Adapter current output or battery discharging current */
[ADC_AMON_BMON] = {"AMON_BMON", NPCX_ADC_CH4, 55000, 6144, 0},
/* System current consumption */