clk: imx: Add imx composite clock
authorAbel Vesa <abel.vesa@nxp.com>
Sat, 1 Dec 2018 10:52:14 +0000 (10:52 +0000)
committerStephen Boyd <sboyd@kernel.org>
Mon, 3 Dec 2018 18:12:50 +0000 (10:12 -0800)
commitd3ff9728134eeaa13d5bbb23c3f2e188f99cfdf9
tree22eaa58af4a751afd934cf4a60e29b0cf489e2f5
parent1cf3817bf1f52e57b3f5eb0413ee0d7f0c2e9829
clk: imx: Add imx composite clock

Since a lot of clocks on imx8m are formed by a mux, gate, predivider and
divider, the idea here is to combine all of those into one composite clock,
but we need to deal with both predivider and divider at the same time and
therefore we add the imx8m_clk_composite_divider_ops and register
the composite clock with those.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Suggested-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/Makefile
drivers/clk/imx/clk-composite-8m.c [new file with mode: 0644]
drivers/clk/imx/clk.h