]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
sunxi: H616: dram: drop default TPR6 Kconfig value
authorAndre Przywara <andre.przywara@arm.com>
Mon, 27 Apr 2026 13:29:50 +0000 (15:29 +0200)
committerAndre Przywara <andre.przywara@arm.com>
Thu, 30 Apr 2026 21:31:03 +0000 (23:31 +0200)
CONFIG_DRAM_SUNXI_TPR6 is the only DRAM config parameter that has a
non-zero default value. Since we need to provide a value for all the
other parameters anyway, avoiding TPR6 makes no real difference.
To make matters worse, TPR6 is a compound value covering multiple DRAM
types, but also spans over three SoCs, which makes it hard to find one
good default value.

Drop the default from Kconfig, and put some explicit values in the
defconfigs for the few boards that were relying on the default so far.
The value is taken from one BSP, only the lower byte matters anyway for
those boards, all using DDR3 DRAM.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Reviewed-by: Paul Kocialkowski <paulk@sys-base.io>
arch/arm/mach-sunxi/Kconfig
configs/orangepi_zero2_defconfig
configs/transpeed-8k618-t_defconfig
configs/x96_mate_defconfig
configs/x96q_defconfig

index 07d7ea2b7ad120242de0876f45308f480eee9875..ceba96b61a5caa8c0c9ab61e8d3c233225f301c6 100644 (file)
@@ -151,7 +151,6 @@ config DRAM_SUNXI_TPR3
 
 config DRAM_SUNXI_TPR6
        hex "DRAM TPR6 parameter"
-       default 0x3300c080
        help
          TPR6 value from vendor DRAM settings.
 
index b387b4795ade9e98fb691c7e862cc9876564148e..afd1535052da10b28b7e798d46108ee978a754f3 100644 (file)
@@ -5,6 +5,7 @@ CONFIG_SPL=y
 CONFIG_DRAM_SUNXI_DX_ODT=0x08080808
 CONFIG_DRAM_SUNXI_DX_DRI=0x0e0e0e0e
 CONFIG_DRAM_SUNXI_CA_DRI=0x0e0e
+CONFIG_DRAM_SUNXI_TPR6=0x33808080
 CONFIG_DRAM_SUNXI_TPR10=0xf83438
 CONFIG_MACH_SUN50I_H616=y
 CONFIG_SUNXI_DRAM_H616_DDR3_1333=y
index e4bf5e8efd3854ddab25c73bb6036d2a2a6c52ca..e672d8f8df9a7723324cf301861e843a5bc74e51 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_DRAM_SUNXI_DX_ODT=0x03030303
 CONFIG_DRAM_SUNXI_DX_DRI=0x0e0e0e0e
 CONFIG_DRAM_SUNXI_CA_DRI=0x1f12
 CONFIG_DRAM_SUNXI_TPR0=0xc0001002
+CONFIG_DRAM_SUNXI_TPR6=0x33808080
 CONFIG_DRAM_SUNXI_TPR10=0x2f1107
 CONFIG_DRAM_SUNXI_TPR11=0xddddcccc
 CONFIG_DRAM_SUNXI_TPR12=0xeddc7665
index c0628370df9fea9f835f7a7c362be52746ee1955..1b7d9338c0235c8a4245e79e57b34e1f826cbcae 100644 (file)
@@ -6,6 +6,7 @@ CONFIG_DRAM_SUNXI_DX_ODT=0x03030303
 CONFIG_DRAM_SUNXI_DX_DRI=0x0e0e0e0e
 CONFIG_DRAM_SUNXI_CA_DRI=0x1c12
 CONFIG_DRAM_SUNXI_TPR0=0xc0000c05
+CONFIG_DRAM_SUNXI_TPR6=0x33808080
 CONFIG_DRAM_SUNXI_TPR10=0x2f0007
 CONFIG_DRAM_SUNXI_TPR11=0xffffdddd
 CONFIG_DRAM_SUNXI_TPR12=0xfedf7557
index 59f01aae4eb08b97b865a134aed4f211dc519314..068aee3fd1eaabfcb1b9e9d950042dad236031d5 100644 (file)
@@ -8,6 +8,7 @@ CONFIG_DRAM_SUNXI_DX_DRI=0x0e0e0e0e
 CONFIG_DRAM_SUNXI_CA_DRI=0x1f12
 CONFIG_DRAM_SUNXI_TPR0=0xc0001002
 CONFIG_DRAM_SUNXI_TPR2=0x00000100
+CONFIG_DRAM_SUNXI_TPR6=0x33808080
 CONFIG_DRAM_SUNXI_TPR10=0x002f0107
 CONFIG_DRAM_SUNXI_TPR11=0xddddcccc
 CONFIG_DRAM_SUNXI_TPR12=0xeddc7665