diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-10-29 12:56:29 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-10-30 10:45:07 -0700 |
commit | fdd3d90bd78fd753356d8aa3373e066141851a35 (patch) | |
tree | 357e4c651b98b8907ef19e0ea8429f506bd8904c /board/bds | |
parent | 1d916d7c6b25de10c870cf7f35a44d3654d9f099 (diff) | |
download | chrome-ec-fdd3d90bd78fd753356d8aa3373e066141851a35.tar.gz |
Clean up ADC module
ADC config structs are now chip-specific; this saves code size
(several hundred bytes on LM4, since no need for 24-entry ADC channel
to GPIO mapping table).
BUG=chrome-os-partner:15579
BRANCH=none
TEST='adc' with system on and off; ChargerCurrent should be bigger when on.
Change-Id: Ia88b3f043438bec049f2d2ad39fc42dcf86d9424
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/36798
Diffstat (limited to 'board/bds')
-rw-r--r-- | board/bds/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/bds/board.c b/board/bds/board.c index 04e3d56c67..ccbe69b38c 100644 --- a/board/bds/board.c +++ b/board/bds/board.c @@ -19,7 +19,7 @@ const struct adc_t adc_channels[ADC_CH_COUNT] = { * = -225 * ADC_VALUE / ADC_READ_MAX + 420.5 */ {"ECTemp", LM4_ADC_SEQ0, -225, ADC_READ_MAX, 420, - LM4_AIN_NONE, 0x0e /* TS0 | IE0 | END0 */}, + LM4_AIN_NONE, 0x0e /* TS0 | IE0 | END0 */, 0, 0}, /* Charger current is mapped from 0~4000mA to 0~1.6V. * And ADC maps 0~3.3V to ADC_READ_MAX. @@ -28,7 +28,7 @@ const struct adc_t adc_channels[ADC_CH_COUNT] = { * board, but that's good enough for debugging the ADC. */ {"BDSPot", LM4_ADC_SEQ1, 33 * 4000, ADC_READ_MAX * 16, 0, - LM4_AIN(0), 0x06 /* IE0 | END0 */}, + LM4_AIN(0), 0x06 /* IE0 | END0 */, LM4_GPIO_E, (1<<3)}, }; |