clk: imx8qxp: add clock valid checking mechnism
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 23 Apr 2021 03:33:33 +0000 (11:33 +0800)
committerAbel Vesa <abel.vesa@nxp.com>
Mon, 14 Jun 2021 09:33:19 +0000 (12:33 +0300)
commit5964012ce37e66d2588a9bc82f7184a008851cac
tree890c37c2e502c4d6209764f3476c91361dfd8e27
parent5392c5de096a1cad7cc06265a8cbf18de2da22c7
clk: imx8qxp: add clock valid checking mechnism

clk-imx8qxp is a common SCU clock driver used by both QM and QXP
platforms. The clock numbers vary a bit between those two platforms.
This patch introduces a mechanism to only register the valid clocks
for one platform by checking the clk resource id table.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
drivers/clk/imx/Makefile
drivers/clk/imx/clk-imx8qxp-rsrc.c [new file with mode: 0644]
drivers/clk/imx/clk-imx8qxp.c
drivers/clk/imx/clk-scu.c
drivers/clk/imx/clk-scu.h