]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx: imx8m: Align PLL 1.2 GHz option with Linux
authorMarek Vasut <marex@denx.de>
Tue, 25 Jan 2022 02:48:05 +0000 (03:48 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 14:49:01 +0000 (15:49 +0100)
Linux uses slightly different divider settings for the 1.2 GHz PLL
configuration, adjust the coefficients to match Linux.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/mach-imx/imx8m/clock_imx8mm.c

index f8e4ec0d90527f46e03ae62acfb45ae1ae744b93..2ca3bf68e742bd9d9dc8e7d4694f8ce490bbc844 100644 (file)
@@ -244,9 +244,9 @@ int intpll_configure(enum pll_clocks pll, ulong freq)
                        INTPLL_PRE_DIV_VAL(3) | INTPLL_POST_DIV_VAL(1);
                break;
        case MHZ(1200):
-               /* 24 * 0xc8 / 2 / 2 ^ 1 */
-               pll_div_ctl_val = INTPLL_MAIN_DIV_VAL(0xc8) |
-                       INTPLL_PRE_DIV_VAL(2) | INTPLL_POST_DIV_VAL(1);
+               /* 24 * 0x12c / 3 / 2 ^ 1 */
+               pll_div_ctl_val = INTPLL_MAIN_DIV_VAL(0x12c) |
+                       INTPLL_PRE_DIV_VAL(3) | INTPLL_POST_DIV_VAL(1);
                break;
        case MHZ(2000):
                /* 24 * 0xfa / 3 / 2 ^ 0 */