diff options
| author | Simon Glass <[email protected]> | 2020-07-16 21:22:32 -0600 |
|---|---|---|
| committer | Bin Meng <[email protected]> | 2020-07-17 14:32:24 +0800 |
| commit | efd31328525629db9fc8b48f1e5b33f8ee1de4d7 (patch) | |
| tree | fec8a9c1c960f85c2a67031d43631e41cd9c9d09 | |
| parent | b336a2b8f61ace1181e114f445322c02b16bd373 (diff) | |
x86: apl: Set the correct boot mode in the FSP-M code
If there is MRC information we should run FSP-M with a different
boot_mode flag since it is supposed to do a 'fast path' through the
memory init. Fix this.
Signed-off-by: Simon Glass <[email protected]>
Reviewed-by: Wolfgang Wallner <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
| -rw-r--r-- | arch/x86/cpu/apollolake/fsp_m.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/cpu/apollolake/fsp_m.c b/arch/x86/cpu/apollolake/fsp_m.c index 65461d85b81..e19a2b0826e 100644 --- a/arch/x86/cpu/apollolake/fsp_m.c +++ b/arch/x86/cpu/apollolake/fsp_m.c @@ -26,7 +26,8 @@ int fspm_update_config(struct udevice *dev, struct fspm_upd *upd) return log_msg_ret("mrc", cache_ret); arch->stack_base = (void *)0xfef96000; arch->boot_loader_tolum_size = 0; - arch->boot_mode = FSP_BOOT_WITH_FULL_CONFIGURATION; + arch->boot_mode = cache_ret ? FSP_BOOT_WITH_FULL_CONFIGURATION : + FSP_BOOT_ASSUMING_NO_CONFIGURATION_CHANGES; node = dev_ofnode(dev); if (!ofnode_valid(node)) |
