clk: imx: gate2: Add cgr_mask for more flexible number of control bits
authorAbel Vesa <abel.vesa@nxp.com>
Wed, 28 Oct 2020 12:59:01 +0000 (14:59 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 2 Nov 2020 23:55:38 +0000 (07:55 +0800)
commitbcd418a632b621510ebc731cb707d8fe3e873119
treef0aba2e5be76259e78e672286b7e0110b2d1539a
parent03681d06a555a6c5f39de48d68082e7444db329f
clk: imx: gate2: Add cgr_mask for more flexible number of control bits

On some i.MX8 platforms, there are HW gates that share the same bit.
So in order to make this clock type more usable, use a mask to specify
how many bits belong to those HW gates.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-gate2.c
drivers/clk/imx/clk.h