diff options
Diffstat (limited to 'firmware/drivers/rtc')
| -rw-r--r-- | firmware/drivers/rtc/rtc_as3514.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/rtc/rtc_as3514.c b/firmware/drivers/rtc/rtc_as3514.c index 1e53219..44ef3cc 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; |