clk: imx6q: Properly handle imx6qp ECSPI clk_sels
authorAdam Ford <aford173@gmail.com>
Tue, 18 Mar 2025 23:38:29 +0000 (18:38 -0500)
committerFabio Estevam <festevam@gmail.com>
Wed, 19 Mar 2025 16:17:21 +0000 (13:17 -0300)
commit4e73c627cb5e53a058b8dbc2ede32f8a473acdd1
tree5f95de669150a7c09cafb1fa5d143aacaab28ec3
parent8bc3542384e3a1219e5ffb62b79d16dddc1b1fb9
clk: imx6q: Properly handle imx6qp ECSPI clk_sels

The ECSPI clock has the ability to select between pll3_60m and
osc on the imx6qp, where it's fixed on other variants.  Fix this
by adding using a helper function to determine SoC variant and
register the clock accordingly.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/imx/clk-imx6q.c