diff options
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 8f64597f4f..58f08a7d19 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c | |||
@@ -270,6 +270,23 @@ void system_init(void) | |||
270 | dma_init(); | 270 | dma_init(); |
271 | 271 | ||
272 | ascodec_init(); | 272 | ascodec_init(); |
273 | |||
274 | #if (CONFIG_CPU == AS3525v2) | ||
275 | /* PLL: disable audio PLL, we use MCLK already */ | ||
276 | ascodec_write_pmu(0x1A, 7, 0x02); | ||
277 | /* DCDC_Cntr: set switching speed of CVDD1/2 power supplies to 1 MHz */ | ||
278 | ascodec_write_pmu(0x17, 7, 0x30); | ||
279 | /* Out_Cntr2: set drive strength of 24 MHz and 32 kHz clocks to 1 mA */ | ||
280 | ascodec_write_pmu(0x1A, 2, 0xCC); | ||
281 | /* CHGVBUS2: set VBUS threshold to 3.18V and EOC threshold to 30% CC */ | ||
282 | ascodec_write_pmu(0x19, 2, 0x41); | ||
283 | #if 0 /* don't set higher voltage until impact on runtime has been checked */ | ||
284 | /* PVDD1: set PVDD1 power supply to 2.5 V */ | ||
285 | ascodec_write_pmu(0x18, 1, 0x35); | ||
286 | /* AVDD17: set AVDD17 power supply to 2.5V */ | ||
287 | ascodec_write_pmu(0x18, 7, 0x31); | ||
288 | #endif | ||
289 | #endif /* (CONFIG_CPU == AS3525v2) */ | ||
273 | 290 | ||
274 | #ifndef BOOTLOADER | 291 | #ifndef BOOTLOADER |
275 | /* setup isr for microsd monitoring and for fuzev2 scrollwheel irq */ | 292 | /* setup isr for microsd monitoring and for fuzev2 scrollwheel irq */ |