mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
ddr: imx93: Add 625M bypass clock support
Add 625M bypass clock that may be used DRAM 625M bypass mode support. 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
456f7ff8b2
commit
37eb821e2e
2 changed files with 6 additions and 0 deletions
|
@ -648,6 +648,9 @@ void dram_pll_init(ulong pll_val)
|
|||
void dram_enable_bypass(ulong clk_val)
|
||||
{
|
||||
switch (clk_val) {
|
||||
case MHZ(625):
|
||||
ccm_clk_root_cfg(DRAM_ALT_CLK_ROOT, SYS_PLL_PFD2, 1);
|
||||
break;
|
||||
case MHZ(400):
|
||||
ccm_clk_root_cfg(DRAM_ALT_CLK_ROOT, SYS_PLL_PFD1, 2);
|
||||
break;
|
||||
|
|
|
@ -148,6 +148,9 @@ void ddrphy_init_set_dfi_clk(unsigned int drate)
|
|||
dram_pll_init(MHZ(167));
|
||||
dram_disable_bypass();
|
||||
break;
|
||||
case 625:
|
||||
dram_enable_bypass(MHZ(625));
|
||||
break;
|
||||
case 400:
|
||||
dram_enable_bypass(MHZ(400));
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue