summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/adc-target.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-04-13 20:03:08 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-04-13 20:03:08 +0000
commitb12c69bac7a02ea161ebc02ce7323e82bebe7b23 (patch)
treed1d827c2e91e7591cb0d661ea0b20c26f0a21d2d /firmware/target/arm/imx31/gigabeat-s/adc-target.h
parent73d1eb4ac06809b64a0545bae22f7e436d3c8b70 (diff)
downloadrockbox-b12c69bac7a02ea161ebc02ce7323e82bebe7b23.tar.gz
rockbox-b12c69bac7a02ea161ebc02ce7323e82bebe7b23.zip
ADC driver for Gigabeat S - a bit on the general side for now. Needs to have scales set properly (what physical value a reading represents isn't clear from the docs or I'm just lazy atm). Throw-in a _bunch_ more reg defines for the PMIC. Show all 16 raw channels values in debug menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17100 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/adc-target.h')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/adc-target.h29
1 files changed, 20 insertions, 9 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/adc-target.h b/firmware/target/arm/imx31/gigabeat-s/adc-target.h
index 8d2beaf320..6b066b0b59 100644
--- a/firmware/target/arm/imx31/gigabeat-s/adc-target.h
+++ b/firmware/target/arm/imx31/gigabeat-s/adc-target.h
@@ -20,18 +20,29 @@
20#define _ADC_TARGET_H_ 20#define _ADC_TARGET_H_
21 21
22/* only two channels used by the Gigabeat */ 22/* only two channels used by the Gigabeat */
23#define NUM_ADC_CHANNELS 2 23#define NUM_ADC_CHANNELS 16
24
25#define ADC_BATTERY 0
26#define ADC_UNKNOWN_1 1
27#define ADC_UNKNOWN_2 2
28#define ADC_UNKNOWN_3 3
29#define ADC_UNKNOWN_4 4
30#define ADC_UNKNOWN_5 5
31#define ADC_UNKNOWN_6 6
32#define ADC_UNKNOWN_7 7
33#define ADC_HPREMOTE 8
34#define ADC_UNKNOWN_9 9
35#define ADC_UNKNOWN_10 10
36#define ADC_UNKNOWN_11 11
37#define ADC_UNKNOWN_12 12
38#define ADC_UNKNOWN_13 13
39#define ADC_UNKNOWN_14 14
40#define ADC_UNKNOWN_15 15
24 41
25#define ADC_BATTERY 0
26#define ADC_HPREMOTE 1
27#define ADC_UNKNOWN_3 2
28#define ADC_UNKNOWN_4 3
29#define ADC_UNKNOWN_5 4
30#define ADC_UNKNOWN_6 5
31#define ADC_UNKNOWN_7 6
32#define ADC_UNKNOWN_8 7
33 42
34#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */ 43#define ADC_UNREG_POWER ADC_BATTERY /* For compatibility */
35#define ADC_READ_ERROR 0xFFFF 44#define ADC_READ_ERROR 0xFFFF
36 45
46void adc_done(void);
47
37#endif 48#endif