]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: A64: fix default DRAM_ODT_EN symbol
authorAndre Przywara <andre.przywara@arm.com>
Mon, 13 Aug 2018 11:10:08 +0000 (16:40 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 13 Aug 2018 11:17:38 +0000 (16:47 +0530)
"default" lines in Kconfig are processed in order, the first hit will
stop considering subsequent lines. In the case of the DRAM_ODT_EN symbol
that means that everything following the first two lines will never be
checked:
------------
config DRAM_ODT_EN
bool "sunxi dram odt enable"
default n if !MACH_SUN8I_A23
default y if MACH_SUN8I_A23
default y if MACH_SUN8I_R40
default y if MACH_SUN50I
------------

Assuming that the "default y" for the A64 and the R40 were a deliberate
choice, fix the Kconfig stanza to take this into account.
Also remove the now redundant lines from the respective defconfigs.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
[jagan: droped 'default n' on original change]
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # A64, R40
Tested-by: Chen-Yu Tsai <wens@csie.org> # A23
arch/arm/mach-sunxi/Kconfig
configs/Bananapi_M2_Ultra_defconfig
configs/amarula_a64_relic_defconfig
configs/bananapi_m2_berry_defconfig
configs/sopine_baseboard_defconfig

index 558363b52d23b235a6bdafcaea96612009fc3c95..686f38fec41f81d53f47c6cf02ed45715c6fd080 100644 (file)
@@ -417,7 +417,6 @@ config DRAM_ZQ
 
 config DRAM_ODT_EN
        bool "sunxi dram odt enable"
-       default n if !MACH_SUN8I_A23
        default y if MACH_SUN8I_A23
        default y if MACH_SUN8I_R40
        default y if MACH_SUN50I
index 6bc33fc94f9391fa03a65ce9568c4fc0b3c8496b..fde829fd71374d07ffc4e895c9c1115eb0f0847a 100644 (file)
@@ -4,7 +4,6 @@ CONFIG_SPL=y
 CONFIG_MACH_SUN8I_R40=y
 CONFIG_DRAM_CLK=576
 CONFIG_DRAM_ZQ=3881979
-CONFIG_DRAM_ODT_EN=y
 CONFIG_MACPWR="PA17"
 CONFIG_MMC0_CD_PIN="PH13"
 CONFIG_MMC_SUNXI_SLOT_EXTRA=2
index b72cbfabc69194b7c095b737ef615d8c1c9b8b5e..9ab4c0c1debea80f0510e62de4ae62c80b5b3291 100644 (file)
@@ -3,7 +3,6 @@ CONFIG_ARCH_SUNXI=y
 CONFIG_SPL=y
 CONFIG_MACH_SUN50I=y
 CONFIG_RESERVE_ALLWINNER_BOOT0_HEADER=y
-CONFIG_DRAM_ODT_EN=y
 CONFIG_MMC_SUNXI_SLOT_EXTRA=2
 # CONFIG_VIDEO_DE2 is not set
 CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-amarula-relic"
index 313e09a764735f943f3564837540e372f9f72496..c5c3cc3a909b5ee4ff313380866b8d730db50b66 100644 (file)
@@ -4,7 +4,6 @@ CONFIG_SPL=y
 CONFIG_MACH_SUN8I_R40=y
 CONFIG_DRAM_CLK=576
 CONFIG_DRAM_ZQ=3881979
-CONFIG_DRAM_ODT_EN=y
 CONFIG_MMC0_CD_PIN="PH13"
 CONFIG_DEFAULT_DEVICE_TREE="sun8i-v40-bananapi-m2-berry"
 CONFIG_AHCI=y
index c79c111b5d6707e465b5a700d1b7224743add8a9..1d0b3fbbc7cd34540546d3a3000b0a390c059a4a 100644 (file)
@@ -6,7 +6,6 @@ CONFIG_RESERVE_ALLWINNER_BOOT0_HEADER=y
 CONFIG_SUNXI_DRAM_LPDDR3_STOCK=y
 CONFIG_DRAM_CLK=552
 CONFIG_DRAM_ZQ=3881949
-CONFIG_DRAM_ODT_EN=y
 CONFIG_MMC0_CD_PIN=""
 CONFIG_MMC_SUNXI_SLOT_EXTRA=2
 CONFIG_SPL_SPI_SUNXI=y