]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f52b053b358eaa37e3d0b66e4f08e094cb680de
treef0aba2e5be76259e78e672286b7e0110b2d1539a
parentfded6dbb5cea3f7c33a7d6b957e69f0af77cae2b
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