[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251120121805.6775-3-ot_shunxi.zhang@mediatek.com>
Date: Thu, 20 Nov 2025 20:17:58 +0800
From: <ot_shunxi.zhang@...iatek.com>
To: Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Matthias Brugger
<matthias.bgg@...il.com>, AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>, Eddie Huang
<eddie.huang@...iatek.com>, Sean Wang <sean.wang@...iatek.com>, "Alexandre
Belloni" <alexandre.belloni@...tlin.com>, Lee Jones <lee@...nel.org>, "Shunxi
Zhang" <ot_shunxi.zhang@...iatek.com>, <Vince-WL.Liu@...iatek.com>,
<sirius.wang@...iatek.com>, <Jh.Hsu@...iatek.com>
CC: <devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <linux-mediatek@...ts.infradead.org>
Subject: [PATCH v2 2/5] mfd: mt6397: Add bit definitions and struct members to support alarm status
From: Shunxi Zhang <ot_shunxi.zhang@...iatek.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@...iatek.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
Powered by blists - more mailing lists