From: YouMin Chen Date: Fri, 15 Nov 2019 03:04:47 +0000 (+0800) Subject: ram: rk3399: fix error about get_ddrc0_con reg addr X-Git-Tag: v2020.10~495^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=410d7863bc96eaa19d003c303c47f7a8a7492380;p=platform%2Fkernel%2Fu-boot.git ram: rk3399: fix error about get_ddrc0_con reg addr Correct the register to its correct name. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 74ac73d..ffc266a 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,