]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx: vining2000: Enable DDR DRAM calibration
authorMarek Vasut <marex@denx.de>
Tue, 26 Nov 2019 08:39:09 +0000 (09:39 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 6 Dec 2019 12:57:42 +0000 (13:57 +0100)
Enable DRAM calibration in SPL to improve behavior of the board
in edge conditions of the thermal envelope of the board and make
it even more stable.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Silvio Fricke <silvio.fricke@softing.com>
Cc: Stefano Babic <sbabic@denx.de>
board/softing/vining_2000/vining_2000.c
configs/vining_2000_defconfig

index 9ac17f78e739209f9663c51e29fc0e3da890ef73..c6aee4ee2b089da270073f915ebd97f1930bd58a 100644 (file)
@@ -587,6 +587,11 @@ static void vining2000_spl_dram_init(void)
 
        mx6sx_dram_iocfg(mem_ddr.width, &mx6_ddr_ioregs, &mx6_grp_ioregs);
        mx6_dram_cfg(&sysinfo, &mx6_mmcd_calib, &mem_ddr);
+
+       /* Perform DDR DRAM calibration */
+       udelay(100);
+       mmdc_do_write_level_calibration(&sysinfo);
+       mmdc_do_dqs_calibration(&sysinfo);
 }
 
 void board_init_f(ulong dummy)
index 4f9f5381894e77b3269ea2e3e697ee78a7850e52..512c15baf800baae6931cdf51136df44101f639e 100644 (file)
@@ -5,6 +5,7 @@ CONFIG_SPL_GPIO_SUPPORT=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_SYS_MALLOC_F_LEN=0x4000
+CONFIG_MX6_DDRCAL=y
 CONFIG_TARGET_SOFTING_VINING_2000=y
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y