summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/sansa-fuzeplus
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/adc-fuzeplus.c2
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/adc-target.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/adc-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/adc-fuzeplus.c
index 78b88c9e85..7207e5f8a8 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/adc-fuzeplus.c
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/adc-fuzeplus.c
@@ -27,6 +27,7 @@ int imx233_adc_mapping[] =
27 [ADC_DIE_TEMP] = IMX233_ADC_DIE_TEMP, 27 [ADC_DIE_TEMP] = IMX233_ADC_DIE_TEMP,
28 [ADC_VDDIO] = IMX233_ADC_VDDIO, 28 [ADC_VDDIO] = IMX233_ADC_VDDIO,
29 [ADC_5V] = HW_LRADC_CHANNEL_5V, 29 [ADC_5V] = HW_LRADC_CHANNEL_5V,
30 [ADC_CH2] = HW_LRADC_CHANNEL(2),
30}; 31};
31 32
32const char *imx233_adc_channel_name[] = 33const char *imx233_adc_channel_name[] =
@@ -35,4 +36,5 @@ const char *imx233_adc_channel_name[] =
35 "Die temperature(°C)", 36 "Die temperature(°C)",
36 "VddIO", 37 "VddIO",
37 "Vdd5V", 38 "Vdd5V",
39 "Channel 2",
38}; 40};
diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/adc-target.h b/firmware/target/arm/imx233/sansa-fuzeplus/adc-target.h
index b7fa5edc86..e9c6f5d00e 100644
--- a/firmware/target/arm/imx233/sansa-fuzeplus/adc-target.h
+++ b/firmware/target/arm/imx233/sansa-fuzeplus/adc-target.h
@@ -21,11 +21,12 @@
21#ifndef _ADC_TARGET_H_ 21#ifndef _ADC_TARGET_H_
22#define _ADC_TARGET_H_ 22#define _ADC_TARGET_H_
23 23
24#define NUM_ADC_CHANNELS 4 24#define NUM_ADC_CHANNELS 5
25 25
26#define ADC_BATTERY 0 26#define ADC_BATTERY 0
27#define ADC_DIE_TEMP 1 27#define ADC_DIE_TEMP 1
28#define ADC_VDDIO 2 28#define ADC_VDDIO 2
29#define ADC_5V 3 29#define ADC_5V 3
30#define ADC_CH2 4
30 31
31#endif 32#endif