public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/4] Minor i.MX DDR init clean-up
@ 2026-03-06  8:58 Philip Molloy
  2026-03-06  8:58 ` [PATCH 1/4] ddr: imx: Remove duplicate includes Philip Molloy
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Philip Molloy @ 2026-03-06  8:58 UTC (permalink / raw)
  To: u-boot
  Cc: linux, Philip Molloy, Fabio Estevam, NXP i.MX U-Boot Team,
	Peng Fan, Philip Molloy, Stefano Babic, Tom Rini

This series makes minor clean-up changes to the i.MX DDR init code.

Unfortunately, I don't have access to any NXP hardware. I ran into LTO
issues with my Fedora toolchain building imx8mm_evk_defconfig. And
binman issues because of missing binary blobs with some imx9*
defconfigs. But compilation was successful.

To support an upcoming ADI SoC that also uses LPDDR4 and Synpsys IP I
would like to leverage the i.MX implementation. Therefore this clean-up
can also serve as a kind of pre-RFC. I would love to know if the
maintainers are open to transitioning to a more generic implementation.
If so, I'll submit a proper RFC. I'll also be at Embedded World next
week if anyone would like to discuss in person.

Some additional context and a comparison of DDR init implementations:

https://philipmolloy.com/ddr-init.html

I reviewed the NXP i.MX downstream repo on Github.[1] The changes in
this series are not fixed downstream. The only major difference with
downtream for the PHY driver appears to be "Quickboot" support, which is
specific to the i.MX 95.

[1]: https://github.com/nxp-imx/uboot-imx

Philip Molloy (4):
  ddr: imx: Remove duplicate includes
  ddr: imx: Remove undefined declarations
  ddr: imx: Remove unused macros
  ddr: imx: Remove unnecessary macro argument

 arch/arm/include/asm/arch-imx8m/ddr.h | 10 ++++------
 arch/arm/include/asm/arch-imx9/ddr.h  |  8 ++------
 drivers/ddr/imx/imx8m/ddr_init.c      |  8 ++++----
 drivers/ddr/imx/phy/ddrphy_utils.c    | 15 +++++++--------
 drivers/ddr/imx/phy/helper.c          |  4 +---
 5 files changed, 18 insertions(+), 27 deletions(-)

-- 
2.53.0

base-commit: 7995bf8dea2d5b3eb7fcb836636f4773924ec35d
branch: ddr-imx-clean-up


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-03-16  8:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-06  8:58 [PATCH 0/4] Minor i.MX DDR init clean-up Philip Molloy
2026-03-06  8:58 ` [PATCH 1/4] ddr: imx: Remove duplicate includes Philip Molloy
2026-03-06  9:40   ` Francesco Dolcini
2026-03-06  8:58 ` [PATCH 2/4] ddr: imx: Remove undefined declarations Philip Molloy
2026-03-06  8:58 ` [PATCH 3/4] ddr: imx: Remove unused macros Philip Molloy
2026-03-06  8:58 ` [PATCH 4/4] ddr: imx: Remove unnecessary macro argument Philip Molloy
2026-03-09  5:24 ` [PATCH 0/4] Minor i.MX DDR init clean-up Peng Fan
2026-03-16  8:26   ` Philip Molloy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox