diff mbox series

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

Message ID 20230330215114.248481-1-dasebek@gmail.com
State Accepted
Commit 86169cdcb0ec53c93e27f7a6c983c33862a1f616
Delegated to: Tom Rini
Headers show
Series [1/1] rockchip: Fix incorrect constant name in RAM init code | expand

Commit Message

David Sebek March 30, 2023, 9:51 p.m. UTC
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(-)

Comments

Simon Glass March 30, 2023, 11:48 p.m. UTC | #1
On Fri, 31 Mar 2023 at 10:53, David Sebek <dasebek@gmail.com> wrote:
>
> 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(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini April 2, 2023, 6:44 p.m. UTC | #2
On Thu, 30 Mar 2023 17:51:14 -0400, David Sebek wrote:

> 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!
diff mbox series

Patch

diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c
index b1fea04e84..963a05c244 100644
--- a/drivers/ram/rockchip/sdram_rk3399.c
+++ b/drivers/ram/rockchip/sdram_rk3399.c
@@ -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;