Skip to contentSkip to conversation

ddr: imx: Handle both 3733 and 3732 MTps rates

PATCH New Marek Vasut 2 participants 2 messages Jan 23, 2023 – Jan 30, 2023 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ddr: imx: Handle both 3733 and 3732 MTps rates

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.

---
Cc: Fabio Estevam <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Ye Li <[email protected]>

---
 drivers/ddr/imx/phy/ddrphy_utils.c | 1 +
 1 file changed, 1 insertion(+)
drivers/ddr/imx/phy/ddrphy_utils.c +1 -0
index b852c870f90..6a8b6be42b2 100644
@@ -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;
Signature · 1 line
2.39.0
#1 lore raw

PATCH 1/1 ddr: imx: Handle both 3733 and 3732 MTps rates

Quoted 4 lines

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.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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: [email protected]
=====================================================================