
-----Original Message----- From: Fabio Estevam [mailto:festevam@gmail.com] Sent: 2018年11月7日 20:36 To: Jon Nettleton jon@solid-run.com; Peng Fan peng.fan@nxp.com Cc: tharvey@gateworks.com; Fabio Estevam fabio.estevam@nxp.com; U-Boot-Denx u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH v6 34/34] imx: add i.MX8QXP MEK board support
- Peng
On Wed, Nov 7, 2018 at 4:58 AM Jon Nettleton jon@solid-run.com wrote:
I have been spending some time on this, at least from the lpddr4 side. There is a good amount of this that can be abstracted out and made into general initialization routines. This is all well and good and you can see that Boundary Devices has already codified some of these values here. https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit
hub.com%2Fboundarydevices%2Fu-boot-imx6%2Fblob%2Fboundary-v2018.07% 2Fb
oard%2Fboundary%2Fnitrogen8m%2Fddr%2Fddrphy_train.c&data=02%7C 01%7
Cpeng.fan%40nxp.com%7C9ed74670423a422dd7f108d644ad89f0%7C686ea1d 3bc2b4
c6fa92cd99c5c301635%7C0%7C0%7C636771909469703915&sdata=WJtl5 C4Z5YU
GLLKZUV6AVfGYjwzFIc7GojsBS8S%2BMWg%3D&reserved=0
However after you generate the script from the spreadsheet you then need to run it through a calibration routine, which is a Windows program that takes the values from the spreadsheets and runs them against the device and provides some tuned phy values based on the device. I don't see a good way to get around just having this chunk of code be a board specific function that runs the register settings that are spit out by the NXP tool.
As for the initialization I am not sure how much changes depending if the board is using DDR3, DDR4 or LPDDR4. It would be great if we could come up with some general direction on this and move things forward.
Peng on Cc has been working on this and hopefully will be able to post a new series soon.
Yes, the related patches will be sent out after some test, should be soon.
Regards, Peng.