]> git.dujemihanovic.xyz Git - u-boot.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)
commit99c7cc58e12d59a7562c637b7c1510cfdf33e4f9
tree6f37204d0e08437af51e400e862d87fc53ccc1ae
parente631185a20ab730603d7bb04378e98a83d337735
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>
16 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/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 [moved from drivers/ddr/imx/imx8m/ddrphy_csr.c with 100% similarity]
drivers/ddr/imx/phy/ddrphy_train.c [moved from drivers/ddr/imx/imx8m/ddrphy_train.c with 98% similarity]
drivers/ddr/imx/phy/ddrphy_utils.c [new file with mode: 0644]
drivers/ddr/imx/phy/helper.c [moved from drivers/ddr/imx/imx8m/helper.c with 79% similarity]