imx8: 'struct dram_timing_info' incompatibilities

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Apr 29 10:41:40 PDT 2024


Hello Enrico,

On 29.04.24 18:32, Enrico Scholz wrote:
> 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())?

No, you are right. See the patch I shortly before:
https://lore.barebox.org/barebox/20240429141610.3556452-1-a.fatoum@pengutronix.de/T/#u

Cheers,
Ahmad

> 
> 
> 
> 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"
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




More information about the barebox mailing list