]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit82df5b7329aaeb21b3e8fc86fa2d62a3d68602aa
tree1691bee97f203a4f045d13376f2aadc2274f26b6
parentacb3b78de3f7698724e59719fbe50b8c92928e83
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