imx: Use per board ddrphy_trained_csr

Drop global ddrphy_trained_csr which maybe different with per board
ddrphy_trained_csr. DDR TOOL generates ddrphy_trained_csr for each
board, using the global ddrphy_trained_csr has risk that values may
be not up to date.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Peng Fan
2024-12-23 10:55:36 +08:00
committed by Fabio Estevam
parent 2f74cac8c3
commit 6016960ceb
6 changed files with 7 additions and 744 deletions

View File

@@ -90,7 +90,8 @@ int ddr_cfg_phy(struct dram_timing_info *dram_timing)
}
/* save the ddr PHY trained CSR in memory for low power use */
ddrphy_trained_csr_save(ddrphy_trained_csr, ddrphy_trained_csr_num);
ddrphy_trained_csr_save(dram_timing->ddrphy_trained_csr,
dram_timing->ddrphy_trained_csr_num);
return 0;
}