]> git.baikalelectronics.ru Git - kernel.git/commit
clk: meson: add g12a cpu dynamic divider driver
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 31 Jul 2019 08:40:17 +0000 (10:40 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Fri, 9 Aug 2019 10:10:03 +0000 (12:10 +0200)
commita4c03aa745b4806eabc5650ec57cd40711258644
treee38143104bf5f1d1521b82eee12d321244cb49cd
parent5f09cf31eda20c51f032596a9824f5044ccf4d20
clk: meson: add g12a cpu dynamic divider driver

Add a clock driver for the cpu dynamic divider, this divider needs
to have a flag set before setting the divider value then removed
while writing the new value to the register.

This drivers implements this behavior and will be used essentially
on the Amlogic G12A and G12B SoCs for cpu clock trees.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/Kconfig
drivers/clk/meson/Makefile
drivers/clk/meson/clk-cpu-dyndiv.c [new file with mode: 0644]
drivers/clk/meson/clk-cpu-dyndiv.h [new file with mode: 0644]