summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/wheatley/board.c4
-rw-r--r--chip/npcx/adc_chip.h2
2 files changed, 3 insertions, 3 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 */
diff --git a/chip/npcx/adc_chip.h b/chip/npcx/adc_chip.h
index 8ee59519af..ab2caa9e6a 100644
--- a/chip/npcx/adc_chip.h
+++ b/chip/npcx/adc_chip.h
@@ -11,7 +11,7 @@
/* Minimum and maximum values returned by raw ADC read. */
#define ADC_READ_MIN 0
#define ADC_READ_MAX 1023
-#define ADC_MAX_VOLT 3300
+#define ADC_MAX_VOLT 2816
/* ADC input channel select */
enum npcx_adc_input_channel {