ram: sun20i_d1: Move dram_mr1 to Kconfig

This parameter needs a different value for the D1s DDR2 configuration.

Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
Samuel Holland 2023-12-09 11:36:03 -06:00
parent a7921eadbd
commit 82a78f639b
3 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,7 @@ CONFIG_ARCH_SUNXI=y
CONFIG_DEFAULT_DEVICE_TREE="sun8i-t113s-mangopi-mq-r-t113"
CONFIG_SPL=y
CONFIG_DRAM_SUNXI_ODT_EN=0
CONFIG_DRAM_SUNXI_MR1=0x42
CONFIG_DRAM_SUNXI_TPR0=0x004a2195
CONFIG_DRAM_SUNXI_TPR11=0x340000
CONFIG_DRAM_SUNXI_TPR12=0x46

View File

@ -12,6 +12,11 @@ config DRAM_SUNXI_ODT_EN
help
ODT EN value from vendor DRAM settings.
config DRAM_SUNXI_MR1
hex "DRAM MR1 parameter"
help
MR1 value from vendor DRAM settings.
config DRAM_SUNXI_TPR0
hex "DRAM TPR0 parameter"
help

View File

@ -1349,7 +1349,7 @@ static const dram_para_t para = {
.dram_zq = CONFIG_DRAM_ZQ,
.dram_odt_en = CONFIG_DRAM_SUNXI_ODT_EN,
.dram_mr0 = PARAMETER_IS_UNUSED,
.dram_mr1 = 0x42,
.dram_mr1 = CONFIG_DRAM_SUNXI_MR1,
.dram_mr2 = PARAMETER_IS_UNUSED,
.dram_mr3 = 0,
.dram_tpr0 = PARAMETER_IS_UNUSED,