diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-11-05 17:01:18 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-09 12:49:44 -0800 |
commit | 20562ac025d8b65fe252a9a9232f70011cf052b3 (patch) | |
tree | 90c1de3daa5e8a5f45c27340f6b2fec771756712 /board/wheatley | |
parent | 006d2ad3a6a39ea1be56137ca17fbc2b998b5c4c (diff) | |
download | chrome-ec-20562ac025d8b65fe252a9a9232f70011cf052b3.tar.gz |
mec1322: adjust mec adc channels for analog reference of 3.0V
Change ADC channels on mec1322 boards to use scaling based on ADC
reference voltage of 3.0V instead of 3.3V. Also, setup the scaling
for AMON_BMON which reads the adapter input current or battery
current in mA.
BUG=none
BRANCH=none
TEST=tested on glados. use adc console command and verify it
roughly matches twinkie voltage and current.
Change-Id: Id6ed72012ebb1c23cf98a14ee6c156ec0f5fb586
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/311302
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/wheatley')
-rw-r--r-- | board/wheatley/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/wheatley/board.c b/board/wheatley/board.c index 247edea7d0..c4561d7347 100644 --- a/board/wheatley/board.c +++ b/board/wheatley/board.c @@ -108,7 +108,7 @@ const struct adc_t adc_channels[] = { /* Vbus sensing. Converted to mV, full ADC is equivalent to 33V. */ [ADC_VBUS] = {"VBUS", NPCX_ADC_CH1, ADC_MAX_VOLT, ADC_READ_MAX+1, 0}, /* Adapter current output or battery discharging current */ - [ADC_AMON_BMON] = {"AMON_BMON", NPCX_ADC_CH4, 1, 1, 0}, + [ADC_AMON_BMON] = {"AMON_BMON", NPCX_ADC_CH4, 55000, 6144, 0}, /* System current consumption */ [ADC_PSYS] = {"PSYS", NPCX_ADC_CH3, 1, 1, 0}, }; |