This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 6b79aea0cf imxrt: Correctly update PLL, bit has to toggled instead of
being set
6b79aea0cf is described below
commit 6b79aea0cfe5f0ce73dbc6c3c68056b284d8841e
Author: Peter van der Perk <[email protected]>
AuthorDate: Thu Jul 4 14:33:03 2024 +0200
imxrt: Correctly update PLL, bit has to toggled instead of being set
---
arch/arm/src/imxrt/imxrt_clockconfig_ver2.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/src/imxrt/imxrt_clockconfig_ver2.c
b/arch/arm/src/imxrt/imxrt_clockconfig_ver2.c
index bc16b0cb99..9757f22695 100644
--- a/arch/arm/src/imxrt/imxrt_clockconfig_ver2.c
+++ b/arch/arm/src/imxrt/imxrt_clockconfig_ver2.c
@@ -412,22 +412,22 @@ static void imxrt_pll2_pfd(void)
if (g_initial_clkconfig.sys_pll2.pfd0 > 0)
{
- reg |= ANADIG_PLL_SYS_PLL2_UPDATE_PFD0_UPDATE;
+ reg ^= ANADIG_PLL_SYS_PLL2_UPDATE_PFD0_UPDATE;
}
if (g_initial_clkconfig.sys_pll2.pfd1 > 0)
{
- reg |= ANADIG_PLL_SYS_PLL2_UPDATE_PFD1_UPDATE;
+ reg ^= ANADIG_PLL_SYS_PLL2_UPDATE_PFD1_UPDATE;
}
if (g_initial_clkconfig.sys_pll2.pfd2 > 0)
{
- reg |= ANADIG_PLL_SYS_PLL2_UPDATE_PFD2_UPDATE;
+ reg ^= ANADIG_PLL_SYS_PLL2_UPDATE_PFD2_UPDATE;
}
if (g_initial_clkconfig.sys_pll2.pfd3 > 0)
{
- reg |= ANADIG_PLL_SYS_PLL2_UPDATE_PFD3_UPDATE;
+ reg ^= ANADIG_PLL_SYS_PLL2_UPDATE_PFD3_UPDATE;
}
putreg32(reg, IMXRT_ANADIG_PLL_SYS_PLL2_UPDATE);