]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: fix H616 DRAM ODT support
authorJernej Skrabec <jernej.skrabec@gmail.com>
Sat, 29 Jan 2022 15:58:42 +0000 (16:58 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 30 Jan 2022 01:25:00 +0000 (01:25 +0000)
Kconfig symbol is missing CONFIG_ prefix, so compiler will always
skip ODT configuration.

Fix symbol name.

Fixes: f4317dbd06b6 ("sunxi: Add H616 DRAM support")
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/dram_sun50i_h616.c

index acdfb3ceef8ca06e6130a4c3763f1c857d87d598..76f520f4e78040e7a28b6c67ce417741aabd3304 100644 (file)
@@ -720,7 +720,7 @@ static bool mctl_phy_init(struct dram_para *para)
        writel(0x80, SUNXI_DRAM_PHY0_BASE + 0x3dc);
        writel(0x80, SUNXI_DRAM_PHY0_BASE + 0x45c);
 
-       if (IS_ENABLED(DRAM_ODT_EN))
+       if (IS_ENABLED(CONFIG_DRAM_ODT_EN))
                mctl_phy_configure_odt();
 
        clrsetbits_le32(SUNXI_DRAM_PHY0_BASE + 4, 7, 0xa);