summaryrefslogtreecommitdiff
path: root/board/strago
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-11-05 17:01:18 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-11-09 12:49:44 -0800
commit20562ac025d8b65fe252a9a9232f70011cf052b3 (patch)
tree90c1de3daa5e8a5f45c27340f6b2fec771756712 /board/strago
parent006d2ad3a6a39ea1be56137ca17fbc2b998b5c4c (diff)
downloadchrome-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/strago')
-rw-r--r--board/strago/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/strago/board.c b/board/strago/board.c
index 441835b0ea..4ef295f50c 100644
--- a/board/strago/board.c
+++ b/board/strago/board.c
@@ -91,8 +91,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", 33000, 1024, 0, 4},
+ /* Vbus sensing. Converted to mV, full ADC is equivalent to 30V. */
+ [ADC_VBUS] = {"VBUS", 30000, 1024, 0, 4},
};
BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);