summaryrefslogtreecommitdiff
path: root/board/amenia/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/amenia/board.c')
-rw-r--r--board/amenia/board.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/board/amenia/board.c b/board/amenia/board.c
index 9b98a0a9f9..56d02895b5 100644
--- a/board/amenia/board.c
+++ b/board/amenia/board.c
@@ -116,9 +116,12 @@ const struct adc_t adc_channels[] = {
/* 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},
+ [ADC_AMON_BMON] = {"AMON_BMON", NPCX_ADC_CH4,
+ (5 << BD99955_IOUT_GAIN_SELECT) * 10000,
+ ADC_READ_MAX+1, 0},
/* System current consumption */
- [ADC_PSYS] = {"PSYS", NPCX_ADC_CH3, 1, 1, 0},
+ [ADC_PSYS] = {"PSYS", NPCX_ADC_CH3, ADC_MAX_VOLT * 10,
+ ADC_READ_MAX+1, 3},
/* Thermistor 0 */
[ADC_THERM_SYS0] = {"THERM_SYS0", NPCX_ADC_CH0, 1, 1, 0},
/* Thermistor 1 */