clk: sunxi: Add a dummy clock driver for the RTC
authorSamuel Holland <samuel@sholland.org>
Mon, 8 Feb 2021 05:57:19 +0000 (23:57 -0600)
committerAndre Przywara <andre.przywara@arm.com>
Fri, 16 Apr 2021 00:12:59 +0000 (01:12 +0100)
commit9078b67f3c968cbc3142432decc93a51780b4642
tree6dd67efc4c424bd60f4e85a1303b06248e0c7776
parenta5ff6f5c72ae26f218f8fa2739a368fcdefca093
clk: sunxi: Add a dummy clock driver for the RTC

The 32kHz clock ("LOSC") on sunxi SoCs is provided by the RTC. It is
used, among other things, by the XHCI controller in the H6. To be able
to call clk_get_bulk() on the XHCI controller, some device needs to
provide all referenced clocks.

Since LOSC is a fixed-rate always-on clock, implementation is trivial.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/clk/sunxi/Makefile
drivers/clk/sunxi/clk_sun6i_rtc.c [new file with mode: 0644]