From: Shunxi Zhang <ot_shunxi.zhang@mediatek.com>
This patch adds new bit definitions for the RTC_BBPU register and one
members in the mt6397_rtc_data structure in the mt6397 RTC header file
to support alarm status functionality in the MT6397 RTC driver.
Signed-off-by: Shunxi Zhang <ot_shunxi.zhang@mediatek.com>
---
include/linux/mfd/mt6397/rtc.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/mfd/mt6397/rtc.h b/include/linux/mfd/mt6397/rtc.h
index 6d0bb1ea151b..fb320719f676 100644
--- a/include/linux/mfd/mt6397/rtc.h
+++ b/include/linux/mfd/mt6397/rtc.h
@@ -15,6 +15,8 @@
#include <linux/rtc.h>
#define RTC_BBPU 0x0000
+#define RTC_BBPU_PWREN BIT(0)
+#define RTC_BBPU_RESET_AL BIT(3)
#define RTC_BBPU_CBUSY BIT(6)
#define RTC_BBPU_KEY (0x43 << 8)
@@ -76,6 +78,7 @@ struct mt6397_rtc {
int irq;
u32 addr_base;
const struct mtk_rtc_data *data;
+ bool alarm_sta_supported;
};
#endif /* _LINUX_MFD_MT6397_RTC_H_ */
--
2.45.2