]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: Fix memory 2-rank initialization for a33 cpu
authorMichael Trimarchi <michael@amarulasolutions.com>
Wed, 31 Oct 2018 19:03:16 +0000 (20:03 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 22 Nov 2018 07:54:15 +0000 (13:24 +0530)
When we initialize the memory we need to autodetect rank and size
but this can happen only if we send the proper reset to both
memory module including cke signal.
For this reason we need initialize the physical on both channel because
we need to presume that both are connected. This way let the CLKE to be
activated at the right time with the memory reset coming from the cpu

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm/mach-sunxi/dram_sun8i_a33.c

index d9aa0c6d7e05d6c7d1fac3add274bcf8166b6624..1da2727f987420acdb164a3d5693d4ddcfe3efa0 100644 (file)
@@ -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,