public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] ddr: imx: Handle both 3733 and 3732 MTps rates
@ 2023-01-23 16:53 Marek Vasut
  2023-01-30 22:08 ` sbabic
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2023-01-23 16:53 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Fabio Estevam, Peng Fan, Stefano Babic, Ye Li

The DDR calibration tool for i.MX8M currently produces 3732 MTps rate in
lpddr4_timing.c , while the PHY code expects 3733 MTps rate. Support both
variants to avoid surprises where the system fails to boot.

Signed-off-by: Marek Vasut <marex@denx.de>
---
Cc: Fabio Estevam <festevam@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Ye Li <ye.li@nxp.com>
---
 drivers/ddr/imx/phy/ddrphy_utils.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ddr/imx/phy/ddrphy_utils.c b/drivers/ddr/imx/phy/ddrphy_utils.c
index b852c870f90..6a8b6be42b2 100644
--- a/drivers/ddr/imx/phy/ddrphy_utils.c
+++ b/drivers/ddr/imx/phy/ddrphy_utils.c
@@ -112,6 +112,7 @@ void ddrphy_init_set_dfi_clk(unsigned int drate)
 		dram_disable_bypass();
 		break;
 	case 3733:
+	case 3732:
 		dram_pll_init(MHZ(933));
 		dram_disable_bypass();
 		break;
-- 
2.39.0


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

* [PATCH] ddr: imx: Handle both 3733 and 3732 MTps rates
  2023-01-23 16:53 [PATCH] ddr: imx: Handle both 3733 and 3732 MTps rates Marek Vasut
@ 2023-01-30 22:08 ` sbabic
  0 siblings, 0 replies; 2+ messages in thread
From: sbabic @ 2023-01-30 22:08 UTC (permalink / raw)
  To: Marek Vasut, u-boot

> The DDR calibration tool for i.MX8M currently produces 3732 MTps rate in
> lpddr4_timing.c , while the PHY code expects 3733 MTps rate. Support both
> variants to avoid surprises where the system fails to boot.
> Signed-off-by: Marek Vasut <marex@denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================

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

end of thread, other threads:[~2023-01-30 22:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-23 16:53 [PATCH] ddr: imx: Handle both 3733 and 3732 MTps rates Marek Vasut
2023-01-30 22:08 ` sbabic

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