]> git.baikalelectronics.ru Git - uboot.git/commitdiff
rockchip: Fix incorrect constant name in RAM init code
authorDavid Sebek <dasebek@gmail.com>
Thu, 30 Mar 2023 21:51:14 +0000 (17:51 -0400)
committerTom Rini <trini@konsulko.com>
Sun, 2 Apr 2023 16:57:12 +0000 (12:57 -0400)
A condition in the rk3399 RAM initialization code used the old
CONFIG_RAM_RK3399_LPDDR4 constant name. This commit changes the
condition to use the correct CONFIG_RAM_ROCKCHIP_LPDDR4 constant.

Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/ram/rockchip/sdram_rk3399.c

index b1fea04e84ae64956efe1c3ab045c5ae11957ee2..963a05c244a6514204d0185d7257554572c3988b 100644 (file)
@@ -2954,7 +2954,7 @@ static int sdram_init(struct dram_info *dram,
                params->ch[ch].cap_info.rank = rank;
        }
 
-#if defined(CONFIG_RAM_RK3399_LPDDR4)
+#if defined(CONFIG_RAM_ROCKCHIP_LPDDR4)
        /* LPDDR4 needs to be trained at 400MHz */
        lpddr4_set_rate(dram, params, 0);
        params->base.ddr_freq = dfs_cfgs_lpddr4[0].base.ddr_freq / MHz;