]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sunxi: Fix dram initialization not working on some a33 devices
authorHans de Goede <hdegoede@redhat.com>
Wed, 13 May 2015 12:54:16 +0000 (14:54 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:43:14 +0000 (22:43 +0200)
When porting the allwinner dram init code to u-boot we missed some code
setting an extra bit when doing auto dram config.

This commits add this bit, fixing dram init not working on the ga10h
10" a33 tablet which I'm bringing up atm.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/sunxi/dram_sun8i_a33.c

index d03f00dc4bc60a8b7bad7ddf97072b307db1437a..979bb3c8176d7ffbfe2d9ba1932469cad6017002 100644 (file)
@@ -195,7 +195,7 @@ static int mctl_train_dram(struct dram_para *para)
                (struct sunxi_mctl_ctl_reg *)SUNXI_DRAM_CTL0_BASE;
 
        mctl_data_train_cfg(para);
-       mctl_set_pir(0x1f3);
+       mctl_set_pir(0x5f3);
 
        return ((readl(&mctl_ctl->pgsr0) >> 20) & 0xff) ? -EIO : 0;
 }