Skip to content

Commit

Permalink
rtc: add new RTC_FEATURE_ALARM_WAKEUP_ONLY feature
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
alexandrebelloni committed Mar 23, 2022
1 parent a87a07a commit e99653a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/uapi/linux/rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e99653a

Please sign in to comment.