From 6984a7ce1535422891ce4de57070cc55a486d352 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 31 Jan 2019 11:05:13 -0500 Subject: RTC: Add support RTC alarms on hosted targets Only AGPTeck Rocker is enabled for now, and it doesn't work properly: * No generic way to determine wakeup reason under Linux * No generic way to be asynchronously notified if the alarm is triggered when we're already awake * Shutting down may clobber RTC wakeup (driver/etc dependent) And finally: * AGPTek kernel's RTC driver has some 24h clock and some timezone-related issues. So, the infrastructure is arguably useful, but the only applicable hardware I have is pathologically brain-dead. Change-Id: Iac6a26a9b6e4efec5d0b3030b87f456eb23fc01d --- firmware/export/config/agptekrocker.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/config/agptekrocker.h b/firmware/export/config/agptekrocker.h index 372287f4b5..6b012730c0 100644 --- a/firmware/export/config/agptekrocker.h +++ b/firmware/export/config/agptekrocker.h @@ -66,6 +66,9 @@ /* define this if you have a real-time clock */ #define CONFIG_RTC APPLICATION +/* Define if the device can wake from an RTC alarm */ +#define HAVE_RTC_ALARM + /* The number of bytes reserved for loadable codecs */ #define CODEC_SIZE 0x80000 -- cgit