]> git.dujemihanovic.xyz Git - u-boot.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)
commit337e92e79c95ffb8c0c6e7b4023c955c50fca018
tree9463fe92d6dccc56194bf055ae79af094217cfac
parentdaef678cffb9fb387c44d45d827d2b8ea199eb5b
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