From 7e7dd8cd1aa232e2790ddfe09bffbe908f3d0230 Mon Sep 17 00:00:00 2001 From: Mulin Chao Date: Sat, 19 Sep 2015 08:59:29 +0800 Subject: nuc: Simplify adc/pwm/fan drivers and related structures in boards Modified drivers: 1. register.h: Add marco field operation funcs for muti-bits field of register. 2. adc.c/fan.c/pwm.c: Simplify field operations by marco funcs. 3. adc.c: Add support for ADC_CH3/4 4. pwm.c: Add PWM_CONFIG_DSLEEP_CLK flag 6. fan.c: Support multi-fans mechanism BUG=chrome-os-partner:34346 TEST=make buildall -j; test nuvoton IC specific drivers BRANCH=none Change-Id: Iaaeb6c4ae8d55b4245a1cefb9c20feae4c0fdec2 Reviewed-on: https://chromium-review.googlesource.com/300673 Commit-Ready: Mulin Chao Tested-by: Mulin Chao Reviewed-by: Randall Spangler --- chip/npcx/adc_chip.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'chip/npcx/adc_chip.h') diff --git a/chip/npcx/adc_chip.h b/chip/npcx/adc_chip.h index fda98a7d74..8ee59519af 100644 --- a/chip/npcx/adc_chip.h +++ b/chip/npcx/adc_chip.h @@ -11,14 +11,16 @@ /* Minimum and maximum values returned by raw ADC read. */ #define ADC_READ_MIN 0 #define ADC_READ_MAX 1023 -#define ADC_MAX_VOLT 3260 +#define ADC_MAX_VOLT 3300 /* ADC input channel select */ enum npcx_adc_input_channel { - NPCX_ADC_INPUT_CH0 = 0, - NPCX_ADC_INPUT_CH1, - NPCX_ADC_INPUT_CH2, - NPCX_ADC_INPUT_CH_COUNT + NPCX_ADC_CH0 = 0, + NPCX_ADC_CH1, + NPCX_ADC_CH2, + NPCX_ADC_CH3, + NPCX_ADC_CH4, + NPCX_ADC_CH_COUNT }; /* Data structure to define ADC channels. */ -- cgit v1.2.1