]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: dram: h6: Improve DDR3 config detection
authorJernej Skrabec <jernej.skrabec@siol.net>
Thu, 12 Mar 2020 17:46:00 +0000 (17:46 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 11 Jan 2021 23:19:34 +0000 (23:19 +0000)
commitec9cdaaa13d5eacb66d711db0f995d1fe4acc09b
treedd50d27edd90cb80c97a45c97f842a08fb0c00a8
parent92600edb431b03df7149ee30c1508bbc3b5ebb43
sunxi: dram: h6: Improve DDR3 config detection

It turns out that in rare cases, current analytical approach to detect
correct DRAM bus width and rank on H6 doesn't work. On some TV boxes
with DDR3, incorrect DRAM configuration triggers write leveling error
which immediately stops initialization process. Exact reason why this
error appears isn't known. However, if correct configuration is used,
initalization works without problem.

In order to fix this issue, simply try another configuration when any
kind of error appears during initialization, not just those related to
rank and bus width.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Tested-by: Thomas Graichen <thomas.graichen@googlemail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/dram_sun50i_h6.c