]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/el/el6x/el6x.c
mx6: ddr: Allow changing REFSEL and REFR fields
[people/ms/u-boot.git] / board / el / el6x / el6x.c
index 3b0fb323bdd0fbb695911087d945e11b332d42fe..7856b843411532f6d0214c402b65a040e3cbee41 100644 (file)
@@ -604,6 +604,8 @@ static void spl_dram_init(void)
                .sde_to_rst = 0x10,     /* 14 cycles, 200us (JEDEC default) */
                .rst_to_cke = 0x23,     /* 33 cycles, 500us (JEDEC default) */
                .ddr_type = DDR_TYPE_DDR3,
+               .refsel = 1,    /* Refresh cycles at 32KHz */
+               .refr = 7,      /* 8 refresh commands per refresh cycle */
        };
 
        mx6dq_dram_iocfg(64, &mx6_ddr_ioregs, &mx6_grp_ioregs);