]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: imx93: fix anatop base
authorPeng Fan <peng.fan@nxp.com>
Fri, 12 Apr 2024 14:24:54 +0000 (22:24 +0800)
committerFabio Estevam <festevam@gmail.com>
Mon, 15 Apr 2024 11:09:41 +0000 (08:09 -0300)
The PLL clk needs use anatop base, otherwise wrong PLL address will
be used.

Fixes: 9c153e46661b ("clk: imx: add i.MX93 CCF driver")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/imx/clk-imx93.c

index ce10d79531620220571a554c4ac8b81eeefdcb77..f0cb797d97500d9032a01340aa00c1c813a7db03 100644 (file)
@@ -289,7 +289,7 @@ static int imx93_clk_probe(struct udevice *dev)
        clk_dm(IMX93_CLK_SYS_PLL_PFD2_DIV2,
               imx_clk_fixed_factor("sys_pll_pfd2_div2", "sys_pll_pfd2", 1, 2));
 
-       base = (void *)ANATOP_BASE_ADDR;
+       anatop_base = (void *)ANATOP_BASE_ADDR;
 
        clk_dm(IMX93_CLK_ARM_PLL,
               imx_clk_fracn_gppll_integer("arm_pll", "clock-osc-24m",