clk: thead: Port clock controller driver of TH1520 SoC
authorYao Zi <ziyao@disroot.org>
Fri, 16 May 2025 03:05:23 +0000 (03:05 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 21 May 2025 08:49:57 +0000 (16:49 +0800)
commite6bfa6fc94f655545f4c79b9a9939cfeb97a3a89
tree83813435d73679b08bdcbb0767dbbdef4c3246af
parentce8f49ece23f410aec72be27d1f7e03696132b0a
clk: thead: Port clock controller driver of TH1520 SoC

The driver is adapted from Linux kernel's version of clk-th1520-ap.c,
with only output clocks for external sensors, which are barely useful in
bootloaders, removed.

Same as the mainline driver, it currently lacks of ability to enable and
reconfigure PLLs, which could be implemented later.

Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/thead/Kconfig [new file with mode: 0644]
drivers/clk/thead/Makefile [new file with mode: 0644]
drivers/clk/thead/clk-th1520-ap.c [new file with mode: 0644]