]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/gateworks/gw_ventana/gw_ventana_spl.c
mx6: ddr: Allow changing REFSEL and REFR fields
[people/ms/u-boot.git] / board / gateworks / gw_ventana / gw_ventana_spl.c
index e7f699a2b5bd3ea7f17b11aae46ea1c46e4d7838..b610e06f1de4dddfc964bceabac27276e8cba3a8 100644 (file)
@@ -394,6 +394,8 @@ static void spl_dram_init(int width, int size_mb, int board_model)
                .rst_to_cke = 0x23,     /* 33 cycles, 500us (JEDEC default) */
                .pd_fast_exit = 1, /* enable precharge power-down fast exit */
                .ddr_type = DDR_TYPE_DDR3,
+               .refsel = 1,    /* Refresh cycles at 32KHz */
+               .refr = 7,      /* 8 refresh commands per refresh cycle */
        };
 
        /*