i.MX8/9: question about unused DDR PHY trained CSR board array

Ahmad Fatoum a.fatoum at pengutronix.de
Fri Dec 20 07:12:31 CET 2024


Hello Ye Li,

On 20.12.24 02:58, Ye Li wrote:
> On 12/19/2024 6:27 PM, Ahmad Fatoum wrote:
>> On 30.09.24 08:38, Peng Fan wrote:
>>>> I now have the DDR settings for an i.MX9 LPDDR4 board in front of me
>>>> that has different contents for struct
>>>> dram_cfg_param::ddrphy_trained_csr than the default.
>>>>
>>>> I will inquire how that came about, but in parallel I wanted to ask you if
>>>> this is supposed to happen and to alert you to this issue.
>>> Thanks for raising this issue. I think board specific csr should be used.
>>>
>>> I will check with DDR TOOL owners on this.
>> Did you hear back in the meantime?
> 
> We have discussed this internally. The DDR tool may generate different board specific csr. Currently in DDR retention, because we load csr + ddr_phy_pie, so it is safe to use this global csr.

So ddr_phy_pie contains the firmware to the DDR PHY µC and it will
train the PHY and thus will iron over any missing entries in the
stored CSR? Is my understanding correct?

> But we agree this global csr is confused and waste some memory. It is better to switch to the board csr.

Thanks for the confirmation.

Cheers,
Ahmad

-- 
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 U-Boot mailing list