]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: apl: Set the correct boot mode in the FSP-M code
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 03:22:32 +0000 (21:22 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 17 Jul 2020 06:32:24 +0000 (14:32 +0800)
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 <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/apollolake/fsp_m.c

index 65461d85b81bce58e50cff348f77919bdd12c38c..e19a2b0826e4ce64377a9bfc2fc7582cb24fab35 100644 (file)
@@ -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))