diff options
Diffstat (limited to 'firmware/target/arm/adc-pp5020.c')
-rw-r--r-- | firmware/target/arm/adc-pp5020.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/adc-pp5020.c b/firmware/target/arm/adc-pp5020.c index 616ef04861..7ce5ac7011 100644 --- a/firmware/target/arm/adc-pp5020.c +++ b/firmware/target/arm/adc-pp5020.c | |||
@@ -119,6 +119,7 @@ void adc_init(void) | |||
119 | ADC_ADDR |= 0x2000000; | 119 | ADC_ADDR |= 0x2000000; |
120 | ADC_STATUS |= 0x2000; | 120 | ADC_STATUS |= 0x2000; |
121 | 121 | ||
122 | #if defined (IRIVER_H10) || defined(IRIVER_H10_5GB) | ||
122 | /* Enable channel 2 (H10:remote) */ | 123 | /* Enable channel 2 (H10:remote) */ |
123 | DEV_INIT1 &=~0x300; | 124 | DEV_INIT1 &=~0x300; |
124 | DEV_INIT1 |= 0x100; | 125 | DEV_INIT1 |= 0x100; |
@@ -130,6 +131,7 @@ void adc_init(void) | |||
130 | DEV_INIT1 |= 0x1000; | 131 | DEV_INIT1 |= 0x1000; |
131 | ADC_ADDR |= 0x8000000; | 132 | ADC_ADDR |= 0x8000000; |
132 | ADC_STATUS |= 0x20000000; | 133 | ADC_STATUS |= 0x20000000; |
134 | #endif | ||
133 | 135 | ||
134 | /* Force a scan of all channels to get initial values */ | 136 | /* Force a scan of all channels to get initial values */ |
135 | adc_scan(0); | 137 | adc_scan(0); |