]> git.baikalelectronics.ru Git - uboot.git/commit
ram: rk3399: Conduct memory training at 400MHz
authorLee Jones <lee@kernel.org>
Thu, 11 Aug 2022 07:58:48 +0000 (08:58 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 4 Sep 2022 12:00:38 +0000 (20:00 +0800)
commit06f6cb0bb194a1e5de420d579979a6dd222eb108
tree9463fe92d6dccc56194bf055ae79af094217cfac
parent247a7411fe04f8375ec6200fcbabc8fd7e9e298d
ram: rk3399: Conduct memory training at 400MHz

Currently the default initialisation frequency is 50MHz.  Although
this does appear to be suitable for some LPDDR4 RAM chips, training at
this low frequency has been seen to cause Column errors, leading to
Capacity check errors on others.

Here we force RAM initialisation to happen at 400MHz before ramping up
to the final value running value of 800MHz after everything has been
successfully configured.

Link: https://lore.kernel.org/u-boot/Yo4v3jUeHXTovjOH@google.com/
Suggested-by: YouMin Chen <cym@rock-chips.com>
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>
Tested-by: Michal Suchánek <msuchanek@suse.de>
drivers/ram/rockchip/sdram_rk3399.c