]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx9: configure M33 systick to 24M
authorPeng Fan <peng.fan@nxp.com>
Fri, 28 Apr 2023 04:08:15 +0000 (12:08 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 21 May 2023 14:54:40 +0000 (16:54 +0200)
The M33 systick should be 24M per reference mannual, so correct it.

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

index 04f3116fd1c35b07a5cdd6c8f970efdecba6315b..51aa259aa05748691cee8927c68ec87d7289b1fc 100644 (file)
@@ -700,8 +700,8 @@ int clock_init(void)
        ccm_clk_root_cfg(WAKEUP_AXI_CLK_ROOT, SYS_PLL_PFD2, 2);
        /* SWO TRACE to 133M */
        ccm_clk_root_cfg(SWO_TRACE_CLK_ROOT, SYS_PLL_PFD1_DIV2, 3);
-       /* M33 systetick to 133M */
-       ccm_clk_root_cfg(M33_SYSTICK_CLK_ROOT, SYS_PLL_PFD1_DIV2, 3);
+       /* M33 systetick to 24M */
+       ccm_clk_root_cfg(M33_SYSTICK_CLK_ROOT, OSC_24M_CLK, 1);
        /* NIC to 400M */
        ccm_clk_root_cfg(NIC_CLK_ROOT, SYS_PLL_PFD1, 2);
        /* NIC_APB to 133M */