summaryrefslogtreecommitdiff
path: root/firmware/target/arm/adc-pp5020.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/adc-pp5020.c')
-rw-r--r--firmware/target/arm/adc-pp5020.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/target/arm/adc-pp5020.c b/firmware/target/arm/adc-pp5020.c
index d4b4ff5b02..2d75a7e25f 100644
--- a/firmware/target/arm/adc-pp5020.c
+++ b/firmware/target/arm/adc-pp5020.c
@@ -31,6 +31,10 @@
31#define ADC_DATA_2 (*(volatile unsigned long*)(0x7000ad24)) 31#define ADC_DATA_2 (*(volatile unsigned long*)(0x7000ad24))
32#define ADC_INIT (*(volatile unsigned long*)(0x7000ad2c)) 32#define ADC_INIT (*(volatile unsigned long*)(0x7000ad2c))
33 33
34#if defined(PBELL_VIBE500)
35#define ADC_UNK (*(volatile unsigned long*)(0x7000002c))
36#endif
37
34static unsigned short adcdata[NUM_ADC_CHANNELS]; 38static unsigned short adcdata[NUM_ADC_CHANNELS];
35 39
36/* Scan ADC so that adcdata[channel] gets updated. */ 40/* Scan ADC so that adcdata[channel] gets updated. */
@@ -94,6 +98,10 @@ static void adc_tick(void)
94/* Figured out from how the OF does things */ 98/* Figured out from how the OF does things */
95void adc_init(void) 99void adc_init(void)
96{ 100{
101#if defined(PBELL_VIBE500)
102 ADC_UNK |= 0x1000;
103#endif
104
97#if defined(PHILIPS_HDD1630) || defined(PHILIPS_HDD6330) 105#if defined(PHILIPS_HDD1630) || defined(PHILIPS_HDD6330)
98 ADC_INIT = 0; 106 ADC_INIT = 0;
99#else 107#else