clk: lan966x: Add lan966x SoC clock driver
authorKavyasree Kotagiri <kavyasree.kotagiri@microchip.com>
Wed, 3 Nov 2021 06:19:35 +0000 (11:49 +0530)
committerNicolas Ferre <nicolas.ferre@microchip.com>
Wed, 8 Dec 2021 09:57:26 +0000 (10:57 +0100)
commit54104ee023333e3bd8062ff1cbc312ea4c5bf733
tree420c741bd2c56c1a0f232b732050f686777e259e
parent07300ef47a3f6a1c67753c91466dfc30c0cead7c
clk: lan966x: Add lan966x SoC clock driver

This adds Generic Clock Controller driver for lan966x SoC.

Lan966x clock controller contains 3 PLLs - cpu_clk, ddr_clk
and sys_clk. It generates and supplies clock to various
peripherals within SoC.
Register settings required to provide GCK clocking to a
peripheral is as below:
GCK_SRC_SEL     = Select clock source.
GCK_PRESCALER   = Set divider value.
GCK_ENA         = 1 - Enable GCK clock.

Signed-off-by: Kavyasree Kotagiri <kavyasree.kotagiri@microchip.com>
Co-developed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20211103061935.25677-4-kavyasree.kotagiri@microchip.com
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/clk-lan966x.c [new file with mode: 0644]