]> git.sur5r.net Git - u-boot/blobdiff - board/wandboard/spl.c
imx: reorganize IMX code as other SOCs
[u-boot] / board / wandboard / spl.c
index 77afae7afd6fa51cd898e515f6482eb6ba7f13c3..47082a88d5ec45812ad079b1660a386a56e8a293 100644 (file)
@@ -9,10 +9,10 @@
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/iomux.h>
 #include <asm/arch/mx6-pins.h>
-#include <asm/errno.h>
+#include <linux/errno.h>
 #include <asm/gpio.h>
-#include <asm/imx-common/iomux-v3.h>
-#include <asm/imx-common/video.h>
+#include <asm/mach-imx/iomux-v3.h>
+#include <asm/mach-imx/video.h>
 #include <mmc.h>
 #include <fsl_esdhc.h>
 #include <asm/arch/crm_regs.h>
@@ -187,6 +187,8 @@ static struct mx6_ddr_sysinfo mem_q = {
        .mif3_mode      = 3,
        .rst_to_cke     = 0x23,
        .sde_to_rst     = 0x10,
+       .refsel = 1,    /* Refresh cycles at 32KHz */
+       .refr = 3,      /* 4 refresh commands per refresh cycle */
 };
 
 static struct mx6_mmdc_calibration mx6dl_1g_mmdc_calib = {
@@ -228,6 +230,8 @@ static struct mx6_ddr_sysinfo mem_dl = {
        .mif3_mode      = 3,
        .rst_to_cke     = 0x23,
        .sde_to_rst     = 0x10,
+       .refsel = 1,    /* Refresh cycles at 32KHz */
+       .refr = 3,      /* 4 refresh commands per refresh cycle */
 };
 
 /* DDR 32bit 512MB */
@@ -245,6 +249,8 @@ static struct mx6_ddr_sysinfo mem_s = {
        .mif3_mode      = 3,
        .rst_to_cke     = 0x23,
        .sde_to_rst     = 0x10,
+       .refsel = 1,    /* Refresh cycles at 32KHz */
+       .refr = 3,      /* 4 refresh commands per refresh cycle */
 };
 
 static void ccgr_init(void)
@@ -283,8 +289,6 @@ static void spl_dram_init(void)
                mx6dq_dram_iocfg(64, &mx6dq_ddr_ioregs, &mx6dq_grp_ioregs);
                mx6_dram_cfg(&mem_q, &mx6q_2g_mmdc_calib, &h5t04g63afr);
        }
-
-       udelay(100);
 }
 
 void board_init_f(ulong dummy)