driver: ddr: Refine the ddr init driver on imx8m
authorJacky Bai <ping.bai@nxp.com>
Thu, 8 Aug 2019 09:59:08 +0000 (09:59 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:37 +0000 (16:36 +0200)
commit825ab6b406cba74ae63a1e3373c2f0b62b855f08
tree2177aa058484bc3c7c787bff027e12d9882601ab
parent7b14cc991ba85d2b035479177cc1391ed729abd3
driver: ddr: Refine the ddr init driver on imx8m

Refine the ddr init driver to make it more reusable for different
DDR type(LPDDR4, DDR4 & DDR3L). So we can reduce some redundant
code.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/ddr/imx/imx8m/Kconfig
drivers/ddr/imx/imx8m/Makefile
drivers/ddr/imx/imx8m/ddr4_init.c [deleted file]
drivers/ddr/imx/imx8m/ddr_init.c [new file with mode: 0644]
drivers/ddr/imx/imx8m/ddrphy_utils.c
drivers/ddr/imx/imx8m/helper.c
drivers/ddr/imx/imx8m/lpddr4_init.c [deleted file]