diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2013-11-05 17:44:09 +0100 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2013-11-05 17:44:09 +0100 |
commit | ec0f9c52c0cf3ed7318fbaa3e6e2fc80c9433034 (patch) | |
tree | 31a87bbf5c02d82ef069abdb1d04a9bf18bf279a /include | |
parent | e5cb84471bc3d38ef5d8070abbdf0bc0ceb9d2bf (diff) |
mvf_adc: support all 32 channels
Enable support for all 32 ADC channels, even the internal one. This
is needed to read out the internal temperature since the sensor is
at channel 26.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mvf_adc.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/linux/mvf_adc.h b/include/linux/mvf_adc.h index c1b0b1d0075d..93f464ff9343 100644 --- a/include/linux/mvf_adc.h +++ b/include/linux/mvf_adc.h @@ -83,7 +83,7 @@ #define ADC_HC1 0x04/* Control register for hardware triggers 1 */ #define IRQ_EN 0x80 -#define ADCHC0(x) ((x)&0xF) +#define ADCHC0(x) ((x)&0x1F) #define AIEN1 0x00000080 #define COCOA 0x00000000 @@ -177,6 +177,22 @@ enum adc_channel { ADC13, ADC14, ADC15, + ADC16, + ADC17, + ADC18, + ADC19, + ADC20, + ADC21, + ADC22, + ADC23, + ADC24, + ADC25, + ADC26, + ADC27, + ADC28, + ADC29, + ADC30, + ADC31, }; struct adc_feature { |