From 2ad6c3438e53ddaa80c0aa43e995376495ce1a77 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 31 Jan 2019 11:05:13 -0500 Subject: RTC: Add stub support RTC alarms on hosted targets No targets are enabled, but the hosted Hiby-based targets could have this feature enabled if they weren't so buggy: * 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) * Rocker's kernel's RTC driver has some 24h clock and timezone-related issues. So, the infrastructure is arguably useful, but the only applicable hardware I have is pathologically brain-dead. Change-Id: Ie1aa38e72b831c8a0695ff684f260e514eef9710 --- firmware/export/config/agptekrocker.h | 2 +- firmware/export/config/xduoox20.h | 3 +++ firmware/export/config/xduoox3ii.h | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'firmware/export/config') diff --git a/firmware/export/config/agptekrocker.h b/firmware/export/config/agptekrocker.h index 6b012730c0..a943ff4273 100644 --- a/firmware/export/config/agptekrocker.h +++ b/firmware/export/config/agptekrocker.h @@ -67,7 +67,7 @@ #define CONFIG_RTC APPLICATION /* Define if the device can wake from an RTC alarm */ -#define HAVE_RTC_ALARM +//#define HAVE_RTC_ALARM /* The number of bytes reserved for loadable codecs */ #define CODEC_SIZE 0x80000 diff --git a/firmware/export/config/xduoox20.h b/firmware/export/config/xduoox20.h index d451ba31f4..018e32888f 100644 --- a/firmware/export/config/xduoox20.h +++ b/firmware/export/config/xduoox20.h @@ -63,6 +63,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 diff --git a/firmware/export/config/xduoox3ii.h b/firmware/export/config/xduoox3ii.h index af63c4f97b..886d91dc0f 100644 --- a/firmware/export/config/xduoox3ii.h +++ b/firmware/export/config/xduoox3ii.h @@ -63,6 +63,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 v1.2.3