mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Sansa AMS/AMSv2: analog front-end register CVDD/DCDC3 doesn't exist in AMSv2, so don't modify it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30579 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
151424a6fd
commit
b1298c2c44
3 changed files with 8 additions and 5 deletions
|
|
@ -357,8 +357,10 @@ static void ascodec_wait(struct ascodec_request *req)
|
|||
static void ascodec_async_write(unsigned int index, unsigned int value,
|
||||
struct ascodec_request *req)
|
||||
{
|
||||
#ifndef HAVE_AS3543
|
||||
if (index == AS3514_CVDD_DCDC3) /* prevent setting of the LREG_CP_not bit */
|
||||
value &= ~(1 << 5);
|
||||
#endif
|
||||
|
||||
ascodec_req_init(req, ASCODEC_REQ_WRITE, index, 1);
|
||||
req->data[0] = value;
|
||||
|
|
|
|||
|
|
@ -271,7 +271,8 @@ void system_init(void)
|
|||
|
||||
ascodec_init();
|
||||
|
||||
#if (CONFIG_CPU == AS3525v2)
|
||||
/* Initialize power management settings */
|
||||
#ifdef HAVE_AS3543
|
||||
/* PLL: disable audio PLL, we use MCLK already */
|
||||
ascodec_write_pmu(0x1A, 7, 0x02);
|
||||
/* DCDC_Cntr: set switching speed of CVDD1/2 power supplies to 1 MHz */
|
||||
|
|
@ -286,7 +287,9 @@ void system_init(void)
|
|||
/* AVDD17: set AVDD17 power supply to 2.5V */
|
||||
ascodec_write_pmu(0x18, 7, 0x31);
|
||||
#endif
|
||||
#endif /* (CONFIG_CPU == AS3525v2) */
|
||||
#else
|
||||
ascodec_write(AS3514_CVDD_DCDC3, AS314_CP_DCDC3_SETTING);
|
||||
#endif /* HAVE_AS3543 */
|
||||
|
||||
#ifndef BOOTLOADER
|
||||
/* setup isr for microsd monitoring and for fuzev2 scrollwheel irq */
|
||||
|
|
@ -296,8 +299,6 @@ void system_init(void)
|
|||
/* pin selection for irq happens in the drivers */
|
||||
#endif
|
||||
|
||||
/* Initialize power management settings */
|
||||
ascodec_write(AS3514_CVDD_DCDC3, AS314_CP_DCDC3_SETTING);
|
||||
#if CONFIG_TUNER
|
||||
fmradio_i2c_init();
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue