x86: fsp: Support a warning message when DRAM init is slow
authorSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:43:17 +0000 (18:43 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
commit0990c894cc2e8e94a2b049e4c83d484d0b3afd9c
treee797cbeef5ba4fb68a87501773d48a8fba228351
parentef5f5f6ca691ac0b08dfae45f8723668a9fc46b6
x86: fsp: Support a warning message when DRAM init is slow

With DDR4, Intel SOCs take quite a long time to init their memory. During
this time, if the user is watching, it looks like SPL has hung. Add a
message in this case.

This works by adding a return code to fspm_update_config() that indicates
whether MRC data was found and a new property to the device tree.

Also add one more debug message while starting.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Tested-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
arch/x86/cpu/apollolake/fsp_m.c
arch/x86/dts/chromebook_coral.dts
arch/x86/include/asm/fsp2/fsp_internal.h
arch/x86/lib/fsp2/fsp_meminit.c
doc/device-tree-bindings/fsp/fsp2/apollolake/fsp-m.txt