summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-sun6i.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2022-02-11 13:26:31 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2022-03-23 19:58:38 +0100
commit8a93720329d4d24c352b035e0532f756c8ecf546 (patch)
tree0bc50355cf47419a857ba6928f696f5d4f4cb806 /drivers/rtc/rtc-sun6i.c
parentrtc: sun6i: Add support for broken-down alarm registers (diff)
downloadlinux-8a93720329d4d24c352b035e0532f756c8ecf546.tar.xz
linux-8a93720329d4d24c352b035e0532f756c8ecf546.zip
rtc: sun6i: Add Allwinner H616 support
The H616 RTC changes its day storage to the newly introduced linear day scheme, so pair the new compatible string with this feature flag. The RTC clock parts are handled in a separate driver now, so we skip the clock parts in this driver completely. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220211122643.1343315-7-andre.przywara@arm.com
Diffstat (limited to 'drivers/rtc/rtc-sun6i.c')
-rw-r--r--drivers/rtc/rtc-sun6i.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c
index 448e0e14a9ff..166866b67974 100644
--- a/drivers/rtc/rtc-sun6i.c
+++ b/drivers/rtc/rtc-sun6i.c
@@ -824,6 +824,8 @@ static const struct of_device_id sun6i_rtc_dt_ids[] = {
{ .compatible = "allwinner,sun8i-v3-rtc" },
{ .compatible = "allwinner,sun50i-h5-rtc" },
{ .compatible = "allwinner,sun50i-h6-rtc" },
+ { .compatible = "allwinner,sun50i-h616-rtc",
+ .data = (void *)RTC_LINEAR_DAY },
{ /* sentinel */ },
};
MODULE_DEVICE_TABLE(of, sun6i_rtc_dt_ids);