summaryrefslogtreecommitdiff
path: root/drivers/ddr
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2019-08-08 09:59:02 +0000
committerStefano Babic <sbabic@denx.de>2019-10-08 16:36:37 +0200
commitca729cd16cca26a8d8a1746e3080937206aca615 (patch)
treed1f5c6a9a6a0447c7305750daca073e5878c5ee7 /drivers/ddr
parent9699fb4de55be35ac607cecbbd10c62a52cd7cfe (diff)
downloadu-boot-ca729cd16cca26a8d8a1746e3080937206aca615.tar.gz
ddr: imx8m: Fix ddr4 driver build issue
Since the parameter of dram_pll_init is changed, update to use new. Also remove non-existed header file. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/ddr')
-rw-r--r--drivers/ddr/imx/imx8m/ddr4_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ddr/imx/imx8m/ddr4_init.c b/drivers/ddr/imx/imx8m/ddr4_init.c
index 031cdc57e1..b8aa104536 100644
--- a/drivers/ddr/imx/imx8m/ddr4_init.c
+++ b/drivers/ddr/imx/imx8m/ddr4_init.c
@@ -8,7 +8,6 @@
#include <asm/io.h>
#include <asm/arch/ddr.h>
#include <asm/arch/clock.h>
-#include <asm/arch/imx8m_ddr.h>
#include <asm/arch/sys_proto.h>
void ddr4_cfg_umctl2(struct dram_cfg_param *ddrc_cfg, int num)
@@ -41,7 +40,7 @@ void ddr_init(struct dram_timing_info *dram_timing)
CLK_ROOT_SOURCE_SEL(4) |
CLK_ROOT_PRE_DIV(CLK_ROOT_PRE_DIV4));
- dram_pll_init(DRAM_PLL_OUT_600M);
+ dram_pll_init(MHZ(600));
reg32_write(0x303A00EC, 0x0000ffff); /* PGC_CPU_MAPPING */
reg32setbit(0x303A00F8, 5); /* PU_PGC_SW_PUP_REQ */