summaryrefslogtreecommitdiff
path: root/drivers/clk/sunxi-ng/ccu-sun50i-h6-r.h
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2022-04-29 00:09:28 +0100
committerJernej Skrabec <jernej.skrabec@gmail.com>2022-05-06 18:02:40 +0200
commit38d321b61bda32624bde46f662faac039905e3db (patch)
tree3af9836808de6dc807521170bb2a5959a31b8845 /drivers/clk/sunxi-ng/ccu-sun50i-h6-r.h
parent3123109284176b1532874591f7c81f3837bbdc17 (diff)
downloadlwn-38d321b61bda32624bde46f662faac039905e3db.tar.gz
lwn-38d321b61bda32624bde46f662faac039905e3db.zip
clk: sunxi-ng: h6-r: Add RTC gate clock
The H6 and H616 feature an (undocumented) bus clock gate for accessing the RTC registers. This seems to be enabled at reset (or by the BootROM), so we got away without it so far, but exists regardless. Since the new RTC clock binding for the H616 requires this "bus" clock to be specified in the DT, add this to R_CCU clock driver and expose it on the DT side with a new number. We do this for both the H6 and H616, but mark it as IGNORE_UNUSED, as we cannot reference it in any H6 DTs. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://lore.kernel.org/r/20220428230933.15262-2-andre.przywara@arm.com
Diffstat (limited to 'drivers/clk/sunxi-ng/ccu-sun50i-h6-r.h')
-rw-r--r--drivers/clk/sunxi-ng/ccu-sun50i-h6-r.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-h6-r.h b/drivers/clk/sunxi-ng/ccu-sun50i-h6-r.h
index 7e290b840803..10e9b66afc6a 100644
--- a/drivers/clk/sunxi-ng/ccu-sun50i-h6-r.h
+++ b/drivers/clk/sunxi-ng/ccu-sun50i-h6-r.h
@@ -14,6 +14,6 @@
#define CLK_R_APB2 3
-#define CLK_NUMBER (CLK_R_APB2_RSB + 1)
+#define CLK_NUMBER (CLK_R_APB1_RTC + 1)
#endif /* _CCU_SUN50I_H6_R_H */