clk: imx: composite-8m: add imx8m_clk_hw_composite_core
authorPeng Fan <peng.fan@nxp.com>
Tue, 28 Jan 2020 05:28:36 +0000 (05:28 +0000)
committerShawn Guo <shawnguo@kernel.org>
Fri, 14 Feb 2020 02:49:18 +0000 (10:49 +0800)
commit62668b68dc8e7d4c23cdec60f31d9c8dc1384409
tree48a8915e87deaef7b47696eea7ece701978fb5e3
parent14875e57d8ea9659916cfff524f6a268e882baf7
clk: imx: composite-8m: add imx8m_clk_hw_composite_core

There are several clock slices, current composite code
only support bus/ip clock slices, it could not support core
slice.

So introduce a new API imx8m_clk_hw_composite_core to support
core slice. To core slice, post divider with 3 bits width and
no pre divider. Other fields are same as bus/ip slices.

Add a flag IMX_COMPOSITE_CORE for the usecase.

Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-composite-8m.c
drivers/clk/imx/clk.h