summaryrefslogtreecommitdiff
path: root/drivers/ram
diff options
context:
space:
mode:
authorLee Jones <lee@kernel.org>2022-08-11 10:58:47 +0300
committerKever Yang <kever.yang@rock-chips.com>2022-09-04 15:00:38 +0300
commitdaef678cffb9fb387c44d45d827d2b8ea199eb5b (patch)
tree17ed9d4e3173c3af918a9c000137a8dcba106811 /drivers/ram
parent7b561e2ab8ac980023c5e5325f45a8ca1951c0dd (diff)
downloadu-boot-daef678cffb9fb387c44d45d827d2b8ea199eb5b.tar.xz
ram: rk3399: Fix faulty frequency change reports
Frequency changes to 400MHz are presently reported as: lpddr4_set_rate_0: change freq to 400000000 mhz 0, 1 This is obviously wrong by 6 orders of magnitude. Ensure frequency changes are reported accurately. Signed-off-by: Lee Jones <lee@kernel.org> Tested-by: Xavier Drudis Ferran <xdrudis@tinet.cat> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'drivers/ram')
-rw-r--r--drivers/ram/rockchip/sdram_rk3399.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c
index 5faff39641..f76904f05b 100644
--- a/drivers/ram/rockchip/sdram_rk3399.c
+++ b/drivers/ram/rockchip/sdram_rk3399.c
@@ -2552,8 +2552,8 @@ static int lpddr4_set_rate(struct dram_info *dram,
dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq);
if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG))
- printf("%s: change freq to %d mhz %d, %d\n", __func__,
- dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq,
+ printf("%s: change freq to %dMHz %d, %d\n", __func__,
+ dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq / MHz,
ctl_fn, phy_fn);
}