]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit690cd55396bf1c13466d46ed743a47a564cb7212
tree6dd67efc4c424bd60f4e85a1303b06248e0c7776
parentddc9f5d2f418272ac88dcebd2f4ab464415e6c3f
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]