Merge branch '2019-05-28-master-imports'
[oweals/u-boot.git] / arch / arm / mach-sunxi / dram_sun8i_a33.c
index d9aa0c6d7e05d6c7d1fac3add274bcf8166b6624..5da01922bfaf69034ae4a8ebc24c18a1f9bde127 100644 (file)
@@ -152,7 +152,7 @@ static void auto_set_timing_para(struct dram_para *para)
        reg_val &= ~(0xff << 8);
        reg_val &= ~(0xff << 0);
        reg_val |= (0x33 << 8);
-       reg_val |= (0x8 << 0);
+       reg_val |= (0x10 << 0);
        writel(reg_val, &mctl_ctl->dramtmg8);
        /* Set phy interface time */
        reg_val = (0x2 << 24) | (t_rdata_en << 16) | (0x1 << 8)
@@ -334,7 +334,7 @@ unsigned long sunxi_dram_init(void)
        struct dram_para para = {
                .cs1 = 0,
                .bank = 1,
-               .rank = 1,
+               .rank = 2,
                .rows = 15,
                .bus_width = 16,
                .page_size = 2048,