[PATCH 1/2] sunxi: fix H616 DRAM ODT support
Andre Przywara
andre.przywara at arm.com
Sun Jan 30 23:19:06 CET 2022
On Sat, 29 Jan 2022 16:58:42 +0100
Jernej Skrabec <jernej.skrabec at gmail.com> wrote:
> Kconfig symbol is missing CONFIG_ prefix, so compiler will always
> skip ODT configuration.
>
> Fix symbol name.
Oops, nice catch!
Reviewed-by: Andre Przywara <andre.przywara at arm.com>
Applied to sunxi/master.
Cheers,
Andre
>
> Fixes: f4317dbd06b6 ("sunxi: Add H616 DRAM support")
> Signed-off-by: Jernej Skrabec <jernej.skrabec at gmail.com>
> ---
> arch/arm/mach-sunxi/dram_sun50i_h616.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-sunxi/dram_sun50i_h616.c b/arch/arm/mach-sunxi/dram_sun50i_h616.c
> index acdfb3ceef8c..76f520f4e780 100644
> --- a/arch/arm/mach-sunxi/dram_sun50i_h616.c
> +++ b/arch/arm/mach-sunxi/dram_sun50i_h616.c
> @@ -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);
More information about the U-Boot
mailing list