diff options
-rw-r--r-- | docs/CREDITS | 1 | ||||
-rw-r--r-- | firmware/drivers/rtc/rtc_as3514.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/CREDITS b/docs/CREDITS index 0f97fa72df..06f416553c 100644 --- a/docs/CREDITS +++ b/docs/CREDITS | |||
@@ -562,6 +562,7 @@ Tuomas Airaksinen | |||
562 | Calvin Walden | 562 | Calvin Walden |
563 | Michael Gentry | 563 | Michael Gentry |
564 | David Fowle | 564 | David Fowle |
565 | Fabian Vogel | ||
565 | 566 | ||
566 | The libmad team | 567 | The libmad team |
567 | The wavpack team | 568 | The wavpack team |
diff --git a/firmware/drivers/rtc/rtc_as3514.c b/firmware/drivers/rtc/rtc_as3514.c index 1e5321937e..44ef3cc4a1 100644 --- a/firmware/drivers/rtc/rtc_as3514.c +++ b/firmware/drivers/rtc/rtc_as3514.c | |||
@@ -142,6 +142,10 @@ void rtc_alarm_poweroff(void) | |||
142 | 142 | ||
143 | seconds -= tm.tm_sec; | 143 | seconds -= tm.tm_sec; |
144 | 144 | ||
145 | /* disable MCLK, it is a wakeup source and prevents proper shutdown */ | ||
146 | CGU_AUDIO = (2 << 0) | (1 << 11); | ||
147 | CGU_PLLBSUP = (1 << 2) | (1 << 3); | ||
148 | |||
145 | /* write wakeup register */ | 149 | /* write wakeup register */ |
146 | alarm.seconds = seconds; | 150 | alarm.seconds = seconds; |
147 | alarm.enabled = true; | 151 | alarm.enabled = true; |