]> git.ipfire.org Git - thirdparty/u-boot.git/commit
sunxi: H616: dram: fix LPDDR3 TPR6 parsing
authorJernej Skrabec <jernej.skrabec@gmail.com>
Sun, 5 Apr 2026 19:59:26 +0000 (21:59 +0200)
committerAndre Przywara <andre.przywara@arm.com>
Thu, 30 Apr 2026 21:31:03 +0000 (23:31 +0200)
commit5a24cc0740e1afcca830dd83d9f1062034fff2d6
treebf82efd7ec461ef2a7afa74aac9fbf81ff5c1f5d
parent9d3bbc99b9038fa64dda92f97e0c29e4808694ec
sunxi: H616: dram: fix LPDDR3 TPR6 parsing

Allwinner's DRAM initialisation code defines a parameter named TPR6,
presumably containing some "Vref" parameter, but containing values for
*all* DRAM types. The runtime code selects one byte based on the DRAM
type used.
This selection code was wrong for LPDDR3, the value is encoded in
bits [23:16], not [15:8]. Fix that in the code, which also aligns it
with the very similar code for the A133 and A523.

Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Reported-by: Philippe Simons <simons.philippe@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Paul Kocialkowski <paulk@sys-base.io>
arch/arm/mach-sunxi/dram_sun50i_h616.c