]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Ingenic: Add RTC related clocks for Ingenic SoCs.
author周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Sat, 25 Jul 2020 05:11:36 +0000 (13:11 +0800)
committerStephen Boyd <sboyd@kernel.org>
Tue, 28 Jul 2020 01:17:52 +0000 (18:17 -0700)
commit22496513c0e8525df42e3c63c0c661dfc03a28c8
tree1691bee97f203a4f045d13376f2aadc2274f26b6
parentee840fb956701ebd8878e16e0c90629c9a9a520d
clk: Ingenic: Add RTC related clocks for Ingenic SoCs.

The RTC unit in the Ingenic SoCs has two clock sources, one
is from an external 32.768kHz clock, and the other is from an
external 24MHz/48MHz main clock that is divided by 512. The
choice of these two clocks is controlled by the ERCS bit in
the OPCR register. The RNG unit will also use this clock.

Tested-by: 周正 (Zhou Zheng) <sernia.zhou@foxmail.com>
Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Link: https://lore.kernel.org/r/20200725051136.58220-4-zhouyanjie@wanyeetech.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ingenic/jz4780-cgu.c
drivers/clk/ingenic/x1000-cgu.c
drivers/clk/ingenic/x1830-cgu.c