]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
driver/ddr/fsl: Adjust CAS to preamble override for emulator
authorYork Sun <yorksun@freescale.com>
Tue, 6 Jan 2015 21:18:45 +0000 (13:18 -0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:53:58 +0000 (13:53 +0200)
On ZeBu emulator, CAS to preamble overrides need to be set to
satisfy the timing. This only impact platforms with CONFIG_EMU.

These should be set before MEM_EN is set.

Signed-off-by: York Sun <yorksun@freescale.com>
drivers/ddr/fsl/ctrl_regs.c

index 03d7ff17dd196563b987f398e939d0d58fd6530d..b3477f04b71c514d755df22e4f5006e344a9411c 100644 (file)
@@ -2372,7 +2372,11 @@ compute_fsl_memctl_config_regs(const memctl_options_t *popts,
 #ifdef CONFIG_SYS_FSL_DDR_EMU
        /* disble DDR training for emulator */
        ddr->debug[2] = 0x00000400;
-       ddr->debug[4] = 0xff800000;
+       ddr->debug[4] = 0xff800800;
+       ddr->debug[5] = 0x08000800;
+       ddr->debug[6] = 0x08000800;
+       ddr->debug[7] = 0x08000800;
+       ddr->debug[8] = 0x08000800;
 #endif
 #ifdef CONFIG_SYS_FSL_ERRATUM_A004508
        if ((ip_rev >= 0x40000) && (ip_rev < 0x40400))