mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
7b14cc991b
commit
825ab6b406
7 changed files with 184 additions and 311 deletions
|
@ -122,6 +122,10 @@ void ddrphy_init_set_dfi_clk(unsigned int drate)
|
|||
dram_pll_init(MHZ(400));
|
||||
dram_disable_bypass();
|
||||
break;
|
||||
case 1066:
|
||||
dram_pll_init(MHZ(266));
|
||||
dram_disable_bypass();
|
||||
break;
|
||||
case 667:
|
||||
dram_pll_init(MHZ(167));
|
||||
dram_disable_bypass();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue