summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/fsp2/fsp_internal.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-09 18:43:17 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-07-17 14:32:24 +0800
commit0990c894cc2e8e94a2b049e4c83d484d0b3afd9c (patch)
treee797cbeef5ba4fb68a87501773d48a8fba228351 /arch/x86/include/asm/fsp2/fsp_internal.h
parentef5f5f6ca691ac0b08dfae45f8723668a9fc46b6 (diff)
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>
Diffstat (limited to 'arch/x86/include/asm/fsp2/fsp_internal.h')
-rw-r--r--arch/x86/include/asm/fsp2/fsp_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/fsp2/fsp_internal.h b/arch/x86/include/asm/fsp2/fsp_internal.h
index f751fbf961..b4a4fbbd84 100644
--- a/arch/x86/include/asm/fsp2/fsp_internal.h
+++ b/arch/x86/include/asm/fsp2/fsp_internal.h
@@ -57,7 +57,8 @@ int arch_fsps_preinit(void);
*
* @dev: Hostbridge device containing config
* @upd: Config data to fill in
- * @return 0 if OK, -ve on error
+ * @return 0 if OK, -ENOENT if OK but no MRC-cache data was found, other -ve on
+ * error
*/
int fspm_update_config(struct udevice *dev, struct fspm_upd *upd);