diff options
author | Tomasz Moń <desowin@gmail.com> | 2011-12-05 09:53:23 +0000 |
---|---|---|
committer | Tomasz Moń <desowin@gmail.com> | 2011-12-05 09:53:23 +0000 |
commit | bac6a70184b18ca17a46b3ed955944e1a4d3f032 (patch) | |
tree | b037d8e36e7d76c32d34de9c72f20dab3ec816ec /firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c | |
parent | 4811b516a35ab6d391cc738c17b9aa8a26505fbe (diff) |
Sansa Connect: Revise codec initialization/shutdown.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31149 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c b/firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c index 07c80a07c3..f73df98641 100644 --- a/firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c +++ b/firmware/target/arm/tms320dm320/sansa-connect/power-sansaconnect.c @@ -49,6 +49,9 @@ static void tps65021_write_reg(unsigned reg, unsigned value) void power_init(void) { + /* Enable LDO */ + tps65021_write_reg(0x03, 0xFD); + /* PWM mode */ tps65021_write_reg(0x04, 0xB2); @@ -61,6 +64,9 @@ void power_init(void) void power_off(void) { + /* Disable GIO0 and GIO2 interrupts */ + IO_INTC_EINT1 &= ~(INTR_EINT1_EXT2 | INTR_EINT1_EXT0); + avr_hid_reset_codec(); avr_hid_power_off(); } |