summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/CREDITS1
-rw-r--r--firmware/drivers/rtc/rtc_as3514.c4
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
Calvin Walden
Michael Gentry
David Fowle
+Fabian Vogel
The libmad team
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)
seconds -= tm.tm_sec;
+ /* disable MCLK, it is a wakeup source and prevents proper shutdown */
+ CGU_AUDIO = (2 << 0) | (1 << 11);
+ CGU_PLLBSUP = (1 << 2) | (1 << 3);
+
/* write wakeup register */
alarm.seconds = seconds;
alarm.enabled = true;