History

rtc: add new VL flag for backup switchover

A new flag RTC_VL_BACKUP_SWITCH means that a backup switchover happened since last flag clear.

Alexandre Belloni committed 6 years ago

Commit 734e5e41 parent 9f210ec1 file · +1 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/rtc.h+1−0
@@ -99,6 +99,7 @@ struct rtc_pll_info { · 98 unmodified lines
9999 #define RTC_VL_BACKUP_LOW _BITUL(1) /* Backup voltage is low */
100100 #define RTC_VL_BACKUP_EMPTY _BITUL(2) /* Backup empty or not present */
101101 #define RTC_VL_ACCURACY_LOW _BITUL(3) /* Voltage is low, RTC accuracy is reduced */
102+#define RTC_VL_BACKUP_SWITCH _BITUL(4) /* Backup switchover happened */
102103
103104 #define RTC_VL_READ _IOR('p', 0x13, unsigned int) /* Voltage low detection */
104105 #define RTC_VL_CLR _IO('p', 0x14) /* Clear voltage low information */