summaryrefslogtreecommitdiff
path: root/drivers/ddr/imx/phy/helper.c
diff options
context:
space:
mode:
authorJacky Bai <ping.bai@nxp.com>2023-04-28 12:08:43 +0800
committerStefano Babic <sbabic@denx.de>2023-05-21 16:54:41 +0200
commit8e81e679db3248f2b3c34aee5302cd15a8283293 (patch)
treeeb9ac73afecb54a2bf0c214abe5494edabcd15da /drivers/ddr/imx/phy/helper.c
parent37eb821e2e84b29f65a186ea14534b8ff6de499c (diff)
ddr: imx93: update the ddr init to support mult setpoints
Update the DDR init flow for multi-setpoint support on i.MX93. A new fsp_cfg struct need to be added in the timing file to store the diff part of the DDRC and DRAM MR register for each setpoint. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/ddr/imx/phy/helper.c')
-rw-r--r--drivers/ddr/imx/phy/helper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ddr/imx/phy/helper.c b/drivers/ddr/imx/phy/helper.c
index e9e0294f87d..8cd438791e5 100644
--- a/drivers/ddr/imx/phy/helper.c
+++ b/drivers/ddr/imx/phy/helper.c
@@ -167,8 +167,7 @@ void ddrphy_trained_csr_save(struct dram_cfg_param *ddrphy_csr,
dwc_ddrphy_apb_wr(0xd0000, 0x1);
}
-void dram_config_save(struct dram_timing_info *timing_info,
- unsigned long saved_timing_base)
+void *dram_config_save(struct dram_timing_info *timing_info, unsigned long saved_timing_base)
{
int i = 0;
struct dram_timing_info *saved_timing = (struct dram_timing_info *)saved_timing_base;
@@ -217,4 +216,6 @@ void dram_config_save(struct dram_timing_info *timing_info,
cfg->val = timing_info->ddrphy_pie[i].val;
cfg++;
}
+
+ return (void *)cfg;
}