diff options
author | Alexandre Belloni | 2022-03-09 17:22:53 +0100 |
---|---|---|
committer | Alexandre Belloni | 2022-03-23 19:58:40 +0100 |
commit | e99653afeb9585350644c5ae4b0ca987cbe8d053 (patch) | |
tree | 3e7665b89d3bdf980f93dbcbf007cab47cff1a5f /include/uapi | |
parent | a87a07a111443adbf69cb815187e9532319e8530 (diff) |
rtc: add new RTC_FEATURE_ALARM_WAKEUP_ONLY feature
Some RTCs have an IRQ pin that is not connected to a CPU interrupt but
rather directly to a PMIC or power supply. In that case, it is still useful
to be able to set alarms but we shouldn't expect interrupts.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220309162301.61679-22-alexandre.belloni@bootlin.com
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/rtc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/rtc.h b/include/uapi/linux/rtc.h index 03e5b776e597..97aca4503a6a 100644 --- a/include/uapi/linux/rtc.h +++ b/include/uapi/linux/rtc.h @@ -133,7 +133,8 @@ struct rtc_param { #define RTC_FEATURE_UPDATE_INTERRUPT 4 #define RTC_FEATURE_CORRECTION 5 #define RTC_FEATURE_BACKUP_SWITCH_MODE 6 -#define RTC_FEATURE_CNT 7 +#define RTC_FEATURE_ALARM_WAKEUP_ONLY 7 +#define RTC_FEATURE_CNT 8 /* parameter list */ #define RTC_PARAM_FEATURES 0 |