[U-Boot] [PATCH v3 16/22] ram: rk3399: fix error about get_ddrc0_con reg addr

Kever Yang kever.yang at rock-chips.com
Fri Nov 15 03:04:47 UTC 2019


From: YouMin Chen <cym at rock-chips.com>

Correct the register to its correct name.

Signed-off-by: YouMin Chen <cym at rock-chips.com>
Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
---

Changes in v3: None
Changes in v2: None

 drivers/ram/rockchip/sdram_rk3399.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c
index 74ac73d5b3..ffc266acc3 100644
--- a/drivers/ram/rockchip/sdram_rk3399.c
+++ b/drivers/ram/rockchip/sdram_rk3399.c
@@ -232,7 +232,7 @@ static void *get_denali_phy(const struct chan_info *chan,
 
 static void *get_ddrc0_con(struct dram_info *dram, u8 channel)
 {
-	return (channel == 0) ? &dram->grf->ddrc0_con0 : &dram->grf->ddrc0_con1;
+	return (channel == 0) ? &dram->grf->ddrc0_con0 : &dram->grf->ddrc1_con0;
 }
 
 static void rkclk_ddr_reset(struct rk3399_cru *cru, u32 channel, u32 ctl,
-- 
2.17.1



More information about the U-Boot mailing list