mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-13 16:41:34 +02:00
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>
This commit is contained in:
parent
7b561e2ab8
commit
daef678cff
@ -2552,8 +2552,8 @@ static int lpddr4_set_rate(struct dram_info *dram,
|
|||||||
dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq);
|
dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq);
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG))
|
if (IS_ENABLED(CONFIG_RAM_ROCKCHIP_DEBUG))
|
||||||
printf("%s: change freq to %d mhz %d, %d\n", __func__,
|
printf("%s: change freq to %dMHz %d, %d\n", __func__,
|
||||||
dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq,
|
dfs_cfgs_lpddr4[ctl_fn].base.ddr_freq / MHz,
|
||||||
ctl_fn, phy_fn);
|
ctl_fn, phy_fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user