From ae00569ef97308cbe903e443eea9e819c954f190 Mon Sep 17 00:00:00 2001 From: Eero Nurkkala Date: Wed, 15 May 2024 14:08:42 +0300 Subject: [PATCH] imx9_clockconfig: fix a thinko putreg32() arguments were swapped. Signed-off-by: Eero Nurkkala --- arch/arm64/src/imx9/imx9_clockconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/src/imx9/imx9_clockconfig.c b/arch/arm64/src/imx9/imx9_clockconfig.c index ac3f976801..156e1f5a2a 100644 --- a/arch/arm64/src/imx9/imx9_clockconfig.c +++ b/arch/arm64/src/imx9/imx9_clockconfig.c @@ -376,9 +376,9 @@ void imx9_clockconfig(void) /* Set the CPU clock */ - putreg32(IMX9_CCM_GPR_SH_CLR(CCM_SHARED_A55_CLK), CCM_GPR_A55_CLK_SEL_PLL); + putreg32(CCM_GPR_A55_CLK_SEL_PLL, IMX9_CCM_GPR_SH_CLR(CCM_SHARED_A55_CLK)); pll_init(pll_arm.reg, pll_arm.frac, &pll_arm.parms); - putreg32(IMX9_CCM_GPR_SH_SET(CCM_SHARED_A55_CLK), CCM_GPR_A55_CLK_SEL_PLL); + putreg32(CCM_GPR_A55_CLK_SEL_PLL, IMX9_CCM_GPR_SH_SET(CCM_SHARED_A55_CLK)); /* Run the PLL configuration */