]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx9: use parameter freq when set_arm_clk
authorPeng Fan <peng.fan@nxp.com>
Fri, 28 Apr 2023 04:08:17 +0000 (12:08 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 21 May 2023 14:54:40 +0000 (16:54 +0200)
The freq parameter was ignored, should use it when configuring ARM PLL

Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx9/clock.c

index 7d3a4c01333f3dd11b66dd396b840c1cec893556..f6021502b3d87bd7de21d7ba100b62fc4ab333fa 100644 (file)
@@ -674,7 +674,7 @@ void set_arm_clk(ulong freq)
 {
        /* Increase ARM clock to 1.7Ghz */
        ccm_shared_gpr_set(SHARED_GPR_A55_CLK, SHARED_GPR_A55_CLK_SEL_CCM);
-       configure_intpll(ARM_PLL_CLK, 1700000000);
+       configure_intpll(ARM_PLL_CLK, freq);
        ccm_shared_gpr_set(SHARED_GPR_A55_CLK, SHARED_GPR_A55_CLK_SEL_PLL);
 }