Skip to contentSkip to conversation

rockchip: Fix incorrect constant name in RAM init code

PATCH In review David Sebek 3 participants 3 messages Mar 30, 2023 – Apr 2, 2023 Arm Rockchip

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: Fix incorrect constant name in RAM init code

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.

---
 drivers/ram/rockchip/sdram_rk3399.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ram/rockchip/sdram_rk3399.c +1 -1
index b1fea04e84..963a05c244 100644
@@ -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;
Signature · 1 line
2.40.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · David Sebek

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.

---
 drivers/ram/rockchip/sdram_rk3399.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#2 lore raw
In reply to David Sebek
Quoted 5 lines · David Sebek

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.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom