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, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/adc-pp5020.c b/firmware/target/arm/adc-pp5020.c
index 851e907246..d4b4ff5b02 100644
--- a/firmware/target/arm/adc-pp5020.c
+++ b/firmware/target/arm/adc-pp5020.c
@@ -59,7 +59,7 @@ unsigned short adc_scan(int channel)
59 59
60 adcdata[channel] = (adc_data_1<<2 | adc_data_2); 60 adcdata[channel] = (adc_data_1<<2 | adc_data_2);
61 61
62#if !defined(PHILIPS_HDD1630) 62#if !(defined(PHILIPS_HDD1630) || defined(PHILIPS_HDD6330))
63 /* ADC values read low if PLL is enabled */ 63 /* ADC values read low if PLL is enabled */
64 if(PLL_CONTROL & 0x80000000){ 64 if(PLL_CONTROL & 0x80000000){
65 adcdata[channel] += 0x14; 65 adcdata[channel] += 0x14;
@@ -94,7 +94,7 @@ static void adc_tick(void)
94/* Figured out from how the OF does things */ 94/* Figured out from how the OF does things */
95void adc_init(void) 95void adc_init(void)
96{ 96{
97#if defined(PHILIPS_HDD1630) 97#if defined(PHILIPS_HDD1630) || defined(PHILIPS_HDD6330)
98 ADC_INIT = 0; 98 ADC_INIT = 0;
99#else 99#else
100 ADC_INIT |= 1; 100 ADC_INIT |= 1;
@@ -119,7 +119,7 @@ void adc_init(void)
119 ADC_ADDR = 0; 119 ADC_ADDR = 0;
120 ADC_ADDR |= 0x40; 120 ADC_ADDR |= 0x40;
121 121
122#if !defined(PHILIPS_HDD1630) 122#if !(defined(PHILIPS_HDD1630) || defined(PHILIPS_HDD6330))
123 ADC_ADDR |= 0x20000000; 123 ADC_ADDR |= 0x20000000;
124 udelay(100); 124 udelay(100);
125 125
@@ -155,7 +155,7 @@ void adc_init(void)
155 ADC_STATUS |= 0x20000000; 155 ADC_STATUS |= 0x20000000;
156#endif 156#endif
157 157
158#if defined(PHILIPS_HDD1630) 158#if defined(PHILIPS_HDD1630) || defined(PHILIPS_HDD6330)
159 ADC_INIT |= 0x80000000; 159 ADC_INIT |= 0x80000000;
160 udelay(100); 160 udelay(100);
161 ADC_INIT = 0; 161 ADC_INIT = 0;