Skip to content
Snippets Groups Projects
Commit 9945a30e authored by Dominik Haller's avatar Dominik Haller Committed by Tom Rini
Browse files

board: phytec: k3: k3_ddrss_patch: Add ddr phy reg count


Add and use the correct number of ddr phy registers to update the
corresponding settings.

Fixes: cbf5c99e ("board: phytec: common: Introduce a method to inject DDR timings deltas")
Signed-off-by: default avatarDominik Haller <d.haller@phytec.de>
Reviewed-by: default avatarWadim Egorov <w.egorov@phytec.de>
parent 6bc1fa6b
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
#ifdef CONFIG_K3_AM64_DDRSS
#define LPDDR4_INTR_CTL_REG_COUNT (423U)
#define LPDDR4_INTR_PHY_INDEP_REG_COUNT (345U)
#define LPDDR4_INTR_PHY_REG_COUNT (1406U)
#endif
static int fdt_setprop_inplace_idx_u32(void *fdt, int nodeoffset,
......@@ -54,7 +55,7 @@ int fdt_apply_ddrss_timings_patch(void *fdt, struct ddrss *ddrss)
return ret;
}
for (i = 0; i < LPDDR4_INTR_PHY_INDEP_REG_COUNT; i++)
for (i = 0; i < LPDDR4_INTR_PHY_REG_COUNT; i++)
for (j = 0; j < ddrss->phy_regs_num; j++)
if (i == ddrss->phy_regs[j].off) {
ret = fdt_setprop_inplace_idx_u32(fdt,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment