From: Simon Glass Date: Sat, 7 Dec 2019 04:42:32 +0000 (-0700) Subject: x86: Don't repeat microcode in U-Boot if not needed X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=4f1f507298e152a97d2aef31c1cd7d9fdec1dafc;p=u-boot.git x86: Don't repeat microcode in U-Boot if not needed 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 Reviewed-by: Bin Meng --- diff --git a/arch/x86/dts/u-boot.dtsi b/arch/x86/dts/u-boot.dtsi index 5ebff4f407..e0cca58640 100644 --- a/arch/x86/dts/u-boot.dtsi +++ b/arch/x86/dts/u-boot.dtsi @@ -63,9 +63,16 @@ offset = ; }; #else +# ifdef CONFIG_SPL + u-boot { + offset = ; + }; +# else + /* If there is no SPL then we need to put microcode in U-Boot */ u-boot-with-ucode-ptr { offset = ; }; +# endif #endif #ifdef CONFIG_HAVE_MICROCODE u-boot-dtb-with-ucode {