public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: imx: imx8m: Align PLL 1.2 GHz option with Linux
@ 2022-01-25  2:48 Marek Vasut
  2022-01-25  2:48 ` [PATCH 2/2] ARM: imx: imx8m: Add PLL 1.4 GHz, 1.5 GHz, 1.6 GHz, 1.8 GHz options Marek Vasut
  2022-02-05 16:40 ` [PATCH 1/2] ARM: imx: imx8m: Align PLL 1.2 GHz option with Linux sbabic
  0 siblings, 2 replies; 4+ messages in thread
From: Marek Vasut @ 2022-01-25  2:48 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Peng Fan, Stefano Babic

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 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c b/arch/arm/mach-imx/imx8m/clock_imx8mm.c
index f8e4ec0d905..2ca3bf68e74 100644
--- a/arch/arm/mach-imx/imx8m/clock_imx8mm.c
+++ b/arch/arm/mach-imx/imx8m/clock_imx8mm.c
@@ -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 */
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-05 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-25  2:48 [PATCH 1/2] ARM: imx: imx8m: Align PLL 1.2 GHz option with Linux Marek Vasut
2022-01-25  2:48 ` [PATCH 2/2] ARM: imx: imx8m: Add PLL 1.4 GHz, 1.5 GHz, 1.6 GHz, 1.8 GHz options Marek Vasut
2022-02-05 16:44   ` sbabic
2022-02-05 16:40 ` [PATCH 1/2] ARM: imx: imx8m: Align PLL 1.2 GHz option with Linux sbabic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox