Skip to content

Minor IMX DDR init clean-up#64

Open
pamolloy wants to merge 4 commits intoadi-u-boot-2025.10.yfrom
adi-u-boot-2025.10/philip/ddr-imx-clean-up
Open

Minor IMX DDR init clean-up#64
pamolloy wants to merge 4 commits intoadi-u-boot-2025.10.yfrom
adi-u-boot-2025.10/philip/ddr-imx-clean-up

Conversation

@pamolloy
Copy link
Copy Markdown
Collaborator

@pamolloy pamolloy commented Mar 3, 2026

No description provided.

pamolloy added 4 commits March 3, 2026 10:37
Signed-off-by: Philip Molloy <philip.molloy@analog.com>

Series-to: u-boot
Series-cc: linux@analog.com
Cover-letter:
Minor IMX DDR init clean-up

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

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 RFC. I would love to know if the maintainers
are open to transitioning to a more generic implementation.

Some additional context and a comparison of DDR init implementations:

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

I was also curious about the need for the reg32_write and reg32_read
functions, where reg32_write just flips the arguments.

I reviewed the NXP i.MX downstream repo on Github.[1] The only major
difference for the PHY driver appears to be "Quickboot" support, which
appears to be specific to the i.MX 95.

[1]: https://github.com/nxp-imx/uboot-imx
END
Signed-off-by: Philip Molloy <philip.molloy@analog.com>
Signed-off-by: Philip Molloy <philip.molloy@analog.com>
IP2APB_DDRPHY_IPS_BASE_ADDR() is always passed 0, which is then
multiplied by 0x2000000. Since that results in 0 remove 0x2000000 and
the argument entirely. Instead use DDR_PHY_BASE, which was already
defined in imx9. Add the definition to imx8m.

Signed-off-by: Philip Molloy <philip.molloy@analog.com>
@pamolloy pamolloy requested a review from a team March 3, 2026 09:38
@pamolloy pamolloy self-assigned this Mar 3, 2026
@pamolloy pamolloy added this to ADSP Mar 3, 2026
@pamolloy pamolloy requested a review from a team March 3, 2026 09:40
Comment thread drivers/ddr/imx/phy/helper.c
@pamolloy
Copy link
Copy Markdown
Collaborator Author

pamolloy commented Mar 6, 2026

@pamolloy pamolloy requested a review from ozan956 March 6, 2026 10:26
@pamolloy pamolloy marked this pull request as ready for review March 12, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants