]> git.baikalelectronics.ru Git - uboot.git/commit
ddr: imx: Add i.MX9 DDR controller driver
authorYe Li <ye.li@nxp.com>
Tue, 26 Jul 2022 08:41:07 +0000 (16:41 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 26 Jul 2022 09:29:01 +0000 (11:29 +0200)
commit5852ed81e8ffe0aeba430f2a5be67376ad56fdcf
tree6f37204d0e08437af51e400e862d87fc53ccc1ae
parent67de5dbb329c06444b0fdbfca936b00efa69fc84
ddr: imx: Add i.MX9 DDR controller driver

Since i.MX9 uses same DDR PHY with i.MX8M, split the DDRPHY to a common
directory under imx, then use dedicated ddr controller driver for each
iMX9 and iMX8M.

The DDRPHY registers are space compressed, so it needs conversion to
access the DDRPHY address. Introduce a common PHY address remap function
for both iMX8M and iMX9 for all PHY registers accessing.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
19 files changed:
arch/arm/include/asm/arch-imx8m/ddr.h
arch/arm/include/asm/arch-imx9/ddr.h [new file with mode: 0644]
drivers/Makefile
drivers/ddr/imx/Kconfig
drivers/ddr/imx/imx8m/Kconfig
drivers/ddr/imx/imx8m/Makefile
drivers/ddr/imx/imx8m/ddr_init.c
drivers/ddr/imx/imx8m/ddrphy_csr.c [deleted file]
drivers/ddr/imx/imx8m/ddrphy_train.c [deleted file]
drivers/ddr/imx/imx8m/helper.c [deleted file]
drivers/ddr/imx/imx9/Kconfig [new file with mode: 0644]
drivers/ddr/imx/imx9/Makefile [new file with mode: 0644]
drivers/ddr/imx/imx9/ddr_init.c [new file with mode: 0644]
drivers/ddr/imx/phy/Kconfig [new file with mode: 0644]
drivers/ddr/imx/phy/Makefile [new file with mode: 0644]
drivers/ddr/imx/phy/ddrphy_csr.c [new file with mode: 0644]
drivers/ddr/imx/phy/ddrphy_train.c [new file with mode: 0644]
drivers/ddr/imx/phy/ddrphy_utils.c [new file with mode: 0644]
drivers/ddr/imx/phy/helper.c [new file with mode: 0644]