diff options
author | Mark Arigo <markarigo@gmail.com> | 2009-12-25 04:05:01 +0000 |
---|---|---|
committer | Mark Arigo <markarigo@gmail.com> | 2009-12-25 04:05:01 +0000 |
commit | 6908cc52358df90a27452ab0f085fa41674440ff (patch) | |
tree | 32c307c3164e24ad427ac98b389bad823c363034 /firmware/target/arm/adc-pp5020.c | |
parent | 4a85eb7d9f7212bf2a0974fa42c2cb4f1790f99e (diff) | |
download | rockbox-6908cc52358df90a27452ab0f085fa41674440ff.tar.gz rockbox-6908cc52358df90a27452ab0f085fa41674440ff.zip |
Merry Christmas Gogear HDD6330 owners! This is the start of the HDD6330 port. At the moment, it's essentially a copy of the HDD1630 port with a minimal LCD driver. The touchpad doesn't work as expected, but you can still kind of navigate and listen to music/radio.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24112 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/adc-pp5020.c')
-rw-r--r-- | firmware/target/arm/adc-pp5020.c | 8 |
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 */ |
95 | void adc_init(void) | 95 | void 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; |