diff options
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) | |||
49 | 49 | ||
50 | void power_init(void) | 50 | void power_init(void) |
51 | { | 51 | { |
52 | /* Enable LDO */ | ||
53 | tps65021_write_reg(0x03, 0xFD); | ||
54 | |||
52 | /* PWM mode */ | 55 | /* PWM mode */ |
53 | tps65021_write_reg(0x04, 0xB2); | 56 | tps65021_write_reg(0x04, 0xB2); |
54 | 57 | ||
@@ -61,6 +64,9 @@ void power_init(void) | |||
61 | 64 | ||
62 | void power_off(void) | 65 | void power_off(void) |
63 | { | 66 | { |
67 | /* Disable GIO0 and GIO2 interrupts */ | ||
68 | IO_INTC_EINT1 &= ~(INTR_EINT1_EXT2 | INTR_EINT1_EXT0); | ||
69 | |||
64 | avr_hid_reset_codec(); | 70 | avr_hid_reset_codec(); |
65 | avr_hid_power_off(); | 71 | avr_hid_power_off(); |
66 | } | 72 | } |