]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Don't repeat microcode in U-Boot if not needed
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:42:32 +0000 (21:42 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:20 +0000 (11:44 +0800)
At present if SPL sets up the microcode then it is still included in
U-Boot as well. This is wasteful as microcode is large. Adjust the logic
in the image to prevent this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/dts/u-boot.dtsi

index 5ebff4f4079f273e6d13e96fb7a3e6831ae0df5a..e0cca5864008635b8c32f7398f3f672d4a87f4dc 100644 (file)
                offset = <CONFIG_X86_OFFSET_U_BOOT>;
        };
 #else
+# ifdef CONFIG_SPL
+       u-boot {
+               offset = <CONFIG_SYS_TEXT_BASE>;
+       };
+# else
+       /* If there is no SPL then we need to put microcode in U-Boot */
        u-boot-with-ucode-ptr {
                offset = <CONFIG_X86_OFFSET_U_BOOT>;
        };
+# endif
 #endif
 #ifdef CONFIG_HAVE_MICROCODE
        u-boot-dtb-with-ucode {