diff options
author | Scott Worley <scott.worley@microchip.corp-partner.google.com> | 2021-02-03 10:26:13 -0500 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-10 02:28:00 +0000 |
commit | b1c73bbd6bcd5c4e403998fe8f7bc1e1ace1359b (patch) | |
tree | 23eb41e0fd99b05f3e42d39bad1e8ac737beef15 /chip | |
parent | ec4988dae66f18356ae688520fb11fdea826af92 (diff) | |
download | chrome-ec-b1c73bbd6bcd5c4e403998fe8f7bc1e1ace1359b.tar.gz |
mchp: Add ADC channel enumeration to chip
Add a chip level ADC channel enumerated type.
BRANCH=none
BUG=b:177463787
TEST=Booted skylake RVP to Chrome OS
Signed-off-by: Scott Worley <scott.worley@microchip.corp-partner.google.com>
Change-Id: If30a71698b1d084380c6695e4c4b8921f5b8eec2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2673019
Reviewed-by: Ravin Kumar <ravin.kumar@microchip.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Ravin Kumar <ravin.kumar@microchip.com>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/mchp/adc_chip.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chip/mchp/adc_chip.h b/chip/mchp/adc_chip.h index 4b1f8df8f1..0da34f40f1 100644 --- a/chip/mchp/adc_chip.h +++ b/chip/mchp/adc_chip.h @@ -17,6 +17,19 @@ struct adc_t { int channel; }; +/* List of ADC channels */ +enum chip_adc_channel { + CHIP_ADC_CH0 = 0, + CHIP_ADC_CH1, + CHIP_ADC_CH2, + CHIP_ADC_CH3, + CHIP_ADC_CH4, + CHIP_ADC_CH5, + CHIP_ADC_CH6, + CHIP_ADC_CH7, + CHIP_ADC_COUNT, +}; + /* * Boards must provide this list of ADC channel definitions. * This must match the enum adc_channel list provided by the board. |