From 1bbcaa8df44c761b50a8f1649d2ab778b3ebaee7 Mon Sep 17 00:00:00 2001 From: Mulin Chao Date: Tue, 2 May 2017 15:47:55 +0800 Subject: [PATCH] npcx: adc: Add support for npcx7 series ec This CL added the support for additional 5 adc channels on npcx7 series ec. The pin-mux functionality of adc channels was already introduced in CL 481561. BRANCH=none BUG=none TEST=No build errors for all boards using npcx5 series. Build poppy board and upload FW to platform. No issues found. All 10 adc channels passed the test on npcx796f evb. Change-Id: I2c7458958ff659fce78f265eefa160050dee7daf Signed-off-by: Mulin Chao Reviewed-on: https://chromium-review.googlesource.com/497526 Reviewed-by: Randall Spangler --- chip/npcx/adc_chip.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chip/npcx/adc_chip.h b/chip/npcx/adc_chip.h index ab2caa9e6a..dcb63d4198 100644 --- a/chip/npcx/adc_chip.h +++ b/chip/npcx/adc_chip.h @@ -20,6 +20,13 @@ enum npcx_adc_input_channel { NPCX_ADC_CH2, NPCX_ADC_CH3, NPCX_ADC_CH4, +#if defined(CHIP_FAMILY_NPCX7) + NPCX_ADC_CH5, + NPCX_ADC_CH6, + NPCX_ADC_CH7, + NPCX_ADC_CH8, + NPCX_ADC_CH9, +#endif NPCX_ADC_CH_COUNT };