diff mbox series

[U-Boot,100/126] x86: Disable microcode section for FSP2

Message ID 20190925145750.200592-101-sjg@chromium.org
State Superseded
Delegated to: Bin Meng
Headers show
Series x86: Add initial support for apollolake | expand

Commit Message

Simon Glass Sept. 25, 2019, 2:57 p.m. UTC
At present we don't support loading microcode with FSP2. The correct way
to do this is by adding it to the FIT. For now, disable including
microcode in the image.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 arch/x86/Kconfig         |  4 ++++
 arch/x86/dts/u-boot.dtsi | 11 +++++++++++
 2 files changed, 15 insertions(+)

Comments

Bin Meng Oct. 10, 2019, 9:59 a.m. UTC | #1
Hi Simon,

On Wed, Sep 25, 2019 at 10:59 PM Simon Glass <sjg@chromium.org> wrote:
>
> At present we don't support loading microcode with FSP2. The correct way
> to do this is by adding it to the FIT. For now, disable including
> microcode in the image.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  arch/x86/Kconfig         |  4 ++++
>  arch/x86/dts/u-boot.dtsi | 11 +++++++++++
>  2 files changed, 15 insertions(+)
>
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index e797612e30e..fce3c1d92a3 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -580,6 +580,10 @@ config HAVE_REFCODE
>            broadwell) U-Boot will be missing some critical setup steps.
>            Various peripherals may fail to work.
>
> +config HAVE_MICROCODE
> +       bool
> +       default y if !FSP_VERSION2
> +
>  config SMP
>         bool "Enable Symmetric Multiprocessing"
>         default n
> diff --git a/arch/x86/dts/u-boot.dtsi b/arch/x86/dts/u-boot.dtsi
> index 049f47c9ffd..35129d0510b 100644
> --- a/arch/x86/dts/u-boot.dtsi
> +++ b/arch/x86/dts/u-boot.dtsi
> @@ -37,9 +37,15 @@
>         };
>  #endif
>  #ifdef CONFIG_TPL
> +#ifdef CONFIG_HAVE_MICROCODE
>         u-boot-tpl-with-ucode-ptr {
>                 offset = <CONFIG_TPL_TEXT_BASE>;
>         };
> +#else
> +       u-boot-tpl {
> +               offset = <0xffff0000>;

Why hardcode?

> +       };
> +#endif
>         u-boot-tpl-dtb {
>         };
>         u-boot-spl {
> @@ -77,11 +83,16 @@
>                 offset = <CONFIG_SYS_TEXT_BASE>;
>         };
>  #endif
> +#ifdef CONFIG_HAVE_MICROCODE
>         u-boot-dtb-with-ucode {
>         };
>         u-boot-ucode {
>                 align = <16>;
>         };
> +#else
> +       u-boot-dtb {
> +       };
> +#endif
>  #ifdef CONFIG_X86_HAS_FIT
>         intel-fit {
>         };
> --

Regards,
Bin
diff mbox series

Patch

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index e797612e30e..fce3c1d92a3 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -580,6 +580,10 @@  config HAVE_REFCODE
           broadwell) U-Boot will be missing some critical setup steps.
           Various peripherals may fail to work.
 
+config HAVE_MICROCODE
+	bool
+	default y if !FSP_VERSION2
+
 config SMP
 	bool "Enable Symmetric Multiprocessing"
 	default n
diff --git a/arch/x86/dts/u-boot.dtsi b/arch/x86/dts/u-boot.dtsi
index 049f47c9ffd..35129d0510b 100644
--- a/arch/x86/dts/u-boot.dtsi
+++ b/arch/x86/dts/u-boot.dtsi
@@ -37,9 +37,15 @@ 
 	};
 #endif
 #ifdef CONFIG_TPL
+#ifdef CONFIG_HAVE_MICROCODE
 	u-boot-tpl-with-ucode-ptr {
 		offset = <CONFIG_TPL_TEXT_BASE>;
 	};
+#else
+	u-boot-tpl {
+		offset = <0xffff0000>;
+	};
+#endif
 	u-boot-tpl-dtb {
 	};
 	u-boot-spl {
@@ -77,11 +83,16 @@ 
 		offset = <CONFIG_SYS_TEXT_BASE>;
 	};
 #endif
+#ifdef CONFIG_HAVE_MICROCODE
 	u-boot-dtb-with-ucode {
 	};
 	u-boot-ucode {
 		align = <16>;
 	};
+#else
+	u-boot-dtb {
+	};
+#endif
 #ifdef CONFIG_X86_HAS_FIT
 	intel-fit {
 	};