From 61682b59363fca0fbf51d37ece46ec6d47ea35d4 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Thu, 5 Nov 2020 15:10:14 +0100 Subject: ddr: imx8m: clean up entry points The DDRC address in the memory map and the TF-A parameter store address is the same for all i.MX8M* SoCs. The only difference (for now) is in the power up sequence. Add a enum for the DDRC type, so we can take different code paths in imx8m_ddr_init() depending on the SoC. Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- arch/arm/boards/nxp-imx8mp-evk/lowlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch') diff --git a/arch/arm/boards/nxp-imx8mp-evk/lowlevel.c b/arch/arm/boards/nxp-imx8mp-evk/lowlevel.c index e4f994a1d1..3298ded586 100644 --- a/arch/arm/boards/nxp-imx8mp-evk/lowlevel.c +++ b/arch/arm/boards/nxp-imx8mp-evk/lowlevel.c @@ -118,7 +118,7 @@ static void start_atf(void) power_init_board(); - imx8mm_ddr_init(&imx8mp_evk_dram_timing); + imx8mp_ddr_init(&imx8mp_evk_dram_timing); imx8mp_get_boot_source(&src, &instance); switch (src) { -- cgit v1.2.3