summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/system-as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/system-as3525.c')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index 58f08a7d19..78282b905e 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -271,7 +271,8 @@ void system_init(void)
271 271
272 ascodec_init(); 272 ascodec_init();
273 273
274#if (CONFIG_CPU == AS3525v2) 274 /* Initialize power management settings */
275#ifdef HAVE_AS3543
275 /* PLL: disable audio PLL, we use MCLK already */ 276 /* PLL: disable audio PLL, we use MCLK already */
276 ascodec_write_pmu(0x1A, 7, 0x02); 277 ascodec_write_pmu(0x1A, 7, 0x02);
277 /* DCDC_Cntr: set switching speed of CVDD1/2 power supplies to 1 MHz */ 278 /* DCDC_Cntr: set switching speed of CVDD1/2 power supplies to 1 MHz */
@@ -286,7 +287,9 @@ void system_init(void)
286 /* AVDD17: set AVDD17 power supply to 2.5V */ 287 /* AVDD17: set AVDD17 power supply to 2.5V */
287 ascodec_write_pmu(0x18, 7, 0x31); 288 ascodec_write_pmu(0x18, 7, 0x31);
288#endif 289#endif
289#endif /* (CONFIG_CPU == AS3525v2) */ 290#else
291 ascodec_write(AS3514_CVDD_DCDC3, AS314_CP_DCDC3_SETTING);
292#endif /* HAVE_AS3543 */
290 293
291#ifndef BOOTLOADER 294#ifndef BOOTLOADER
292 /* setup isr for microsd monitoring and for fuzev2 scrollwheel irq */ 295 /* setup isr for microsd monitoring and for fuzev2 scrollwheel irq */
@@ -296,8 +299,6 @@ void system_init(void)
296 /* pin selection for irq happens in the drivers */ 299 /* pin selection for irq happens in the drivers */
297#endif 300#endif
298 301
299 /* Initialize power management settings */
300 ascodec_write(AS3514_CVDD_DCDC3, AS314_CP_DCDC3_SETTING);
301#if CONFIG_TUNER 302#if CONFIG_TUNER
302 fmradio_i2c_init(); 303 fmradio_i2c_init();
303#endif 304#endif