u-boot/arch/arm/mach-sunxi
Michael Trimarchi ddd6930215 sunxi: dram_sun8i: Fix A33 memory initialization
While the exact problem is not known, based on discussion between
Philipp Tomsich and André Przywara it is guessed that exit self-refresh
timing is not set with correct value. There may be implicit enter or
exit Self-Refresh anywhere as part of some training phase.

In ZynqMP register guide [1], which is close to the various
Allwinner DRAM controllers, tXSDLL is bits [14:8], while the non-DLL
tXS is bits [6:0]: Self refresh exit delay. So it could be safely
increased and it only affects the time after the self-refresh “exit”,
which happens only after (re-)initialisation.

There was no document for cpu in question so based on oscilloscope
readings [2][3] and observed result by comparing allwinner architecture.
So set it same as  Allwinner H5 silicon.

Before this patch, failure rate of was 7%.

This was tested on A33 allwinner cpu, dual rank connection connected
with two MT41K512M16HA-125:A memory model. Memory is configured as DDR3
1.5V

And also this is tested in A33-OLinuXino dev board.

[1] https://www.xilinx.com/html_docs/registers/ug1087/ddrc___dramtmg8.html
[2] https://ibb.co/R70zmyS
[3] https://ibb.co/HVVCGQ8

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com>
Acked-by: Jagan Teki <jagan@openedev.com>
2019-04-10 15:32:59 +05:30
..
dram_timings sunxi: add LPDDR3 timing from stock boot0 2017-06-08 22:37:55 +05:30
board.c sunxi: map DRAM part with 3G size 2018-10-29 20:41:15 +05:30
clock.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clock_sun4i.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clock_sun6i.c sunxi: use 6MHz PLL_VIDEO step for DE2 for higher resolution LCD 2018-11-13 22:17:06 +05:30
clock_sun8i_a83t.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clock_sun9i.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
clock_sun50i_h6.c sunxi: add clock code for H6 2018-07-31 11:38:13 +05:30
cpu_info.c sunxi: add support for Allwinner H6 SoC 2018-07-31 11:38:13 +05:30
dram_helpers.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram_sun4i.c sunxi: Fix typos of spelling Allwinner 2018-10-24 22:02:15 +05:30
dram_sun6i.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram_sun8i_a23.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram_sun8i_a33.c sunxi: dram_sun8i: Fix A33 memory initialization 2019-04-10 15:32:59 +05:30
dram_sun8i_a83t.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram_sun9i.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dram_sun50i_h6.c sunxi: fix DRAM gate/reset sequence of H6 2018-10-10 12:04:07 +05:30
dram_sunxi_dw.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gtbus_sun9i.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig arm: sunxi: Enable DM_MMC on required SoCs 2019-04-08 16:35:15 -04:00
Makefile sunxi: add DRAM support to H6 2018-07-31 11:38:13 +05:30
p2wi.c sunxi: Fix typos of spelling Allwinner 2018-10-24 22:02:15 +05:30
pinmux.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmic_bus.c sunxi: pmic_bus: Decrease boot time by not writing duplicate data 2018-12-07 22:24:33 +05:30
prcm.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rmr_switch.S sunxi: change RMR64's RVBAR address for H6 2018-07-31 11:38:13 +05:30
rsb.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl_spi_sunxi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00