mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
ddr: imx8m: Add DRAM PLL to generate 1000Mhz output
We will generate DRAM 4000MT/s as default for i.MX8MP. So need DRAM PLL to generate 1000Mhz clock to DDR PHY and controller. Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
67f3f32c6a
commit
4a41a1a6f0
1 changed files with 4 additions and 0 deletions
|
@ -106,6 +106,10 @@ int wait_ddrphy_training_complete(void)
|
|||
void ddrphy_init_set_dfi_clk(unsigned int drate)
|
||||
{
|
||||
switch (drate) {
|
||||
case 4000:
|
||||
dram_pll_init(MHZ(1000));
|
||||
dram_disable_bypass();
|
||||
break;
|
||||
case 3200:
|
||||
dram_pll_init(MHZ(800));
|
||||
dram_disable_bypass();
|
||||
|
|
Loading…
Add table
Reference in a new issue