imx8: 'struct dram_timing_info' incompatibilities
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Mon Apr 29 09:32:42 PDT 2024
Hi,
commit e6234f90 ("ddr: Initial i.MX9 support") adds unconditionally
fields to the dram timing info object (include/soc/imx/ddr.h):
| struct dram_timing_info {
| ...
| + /* fsp config */
| + struct dram_fsp_cfg *fsp_cfg;
| + unsigned int fsp_cfg_num;
However, the iMX8 ATF ([1]) does not have this field and DRAM related
SMC calls like
| arm_smccc_smc(FSL_SIP_DDR_DVFS, 0x11, i, 0, 0, 0, 0, 0, &res);
in the NXP busfreq-imx8mq.c driver will fail [2].
Am I missing something here or should the dram_timing_info table somehow
translated between these architectures (e.g. in dram_config_save())?
Enrico
Footnotes:
[1] https://github.com/nxp-imx/imx-atf/blob/lf_v2.8/plat/imx/imx8m/include/dram.h
[2] typical message: "imx_busfreq: probe of busfreq failed with error -22"
More information about the barebox
mailing list