]> git.baikalelectronics.ru Git - uboot.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)
commitd92d82170b9d0126f50f0674e7470323cbf535d6
treedd50d27edd90cb80c97a45c97f842a08fb0c00a8
parentf31327ee6f75fc663d314526817c03270ba8ad7f
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