Skip to content

Commit e99653a

Browse files
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
1 parent a87a07a commit e99653a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/uapi/linux/rtc.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ struct rtc_param {
133133
#define RTC_FEATURE_UPDATE_INTERRUPT 4
134134
#define RTC_FEATURE_CORRECTION 5
135135
#define RTC_FEATURE_BACKUP_SWITCH_MODE 6
136-
#define RTC_FEATURE_CNT 7
136+
#define RTC_FEATURE_ALARM_WAKEUP_ONLY 7
137+
#define RTC_FEATURE_CNT 8
137138

138139
/* parameter list */
139140
#define RTC_PARAM_FEATURES 0

0 commit comments

Comments
 (0)