[U-Boot] [PATCH v5 1/8] x86: Add new slimbootloader CPU type

Andy Shevchenko andy.shevchenko at gmail.com
Mon Jul 22 15:14:05 UTC 2019


On Wed, Jul 17, 2019 at 7:41 AM Park, Aiden <aiden.park at intel.com> wrote:
>
> This slimbootloader cpu type is to enable U-Boot as a payload which

cpu -> CPU

> runs on top of Slim Bootloader(https://github.com/slimbootloader).
> The Slim Bootloader is designed with multi-stage architecture for
> the execution from reset vector to OS booting, and supports qemu,

qemu -> QEMU

> Apollolake, Whiskeylake and Coffeelake platforms consuming Intel FSP
> (https://github.com/IntelFsp) for silicon initialization including
> CAR and memory initialization.
> The Slim Bootloader generates new HOB(Hand Off Block) which are
> serial port info, memory map info, performance data info and so on,
> and passes it to a Payload. U-Boot as a payload will use these HOB
> information for basic initialization such as serial console.

> +config SYS_SLIMBOOTLOADER

> +       bool
> +       default y

def_bool y ?

> +       imply SYS_NS16550
> +       imply AHCI_PCI
> +       imply SCSI
> +       imply SCSI_AHCI
> +       imply MMC
> +       imply MMC_PCI
> +       imply MMC_SDHCI
> +       imply MMC_SDHCI_SDMA
> +       imply USB
> +       imply USB_EHCI_HCD
> +       imply USB_XHCI_HCD
> +       imply USB_STORAGE
> +       imply USB_KEYBOARD
> +       imply E1000

> +       imply RTL8169

Is it part of SoC? I dunno we have Realtek inside, usually either
Intel or Synopsys.

> -#ifndef CONFIG_HAVE_FSP
> +#if !defined(CONFIG_HAVE_FSP) && !defined(CONFIG_SYS_SLIMBOOTLOADER)

> -#ifdef CONFIG_HAVE_FSP
> +#if defined(CONFIG_HAVE_FSP) || defined(CONFIG_SYS_SLIMBOOTLOADER)

Hmm... Maybe reasonable to have an additional option to tell something
CONFIG_WE_HAVE_HOB_BUT_FSP.

>         /* Store the HOB list if we have one */
>         test    %esi, %esi
>         jz      skip_hob
>         movl    %esi, GD_HOB_LIST(%edx)
>
> +#ifdef CONFIG_HAVE_FSP

> +#endif

> +#ifndef __SLIMBOOTLOADER_ARCH_H__
> +#define __SLIMBOOTLOADER_ARCH_H__
> +
> +#include <common.h>

Is it going to be expanded later?
Otherwise I do not really see a point.

> +#endif

> -#ifdef CONFIG_HAVE_FSP
> +#if defined(CONFIG_HAVE_FSP) || defined(CONFIG_SYS_SLIMBOOTLOADER)

> -#ifdef CONFIG_HAVE_FSP
> +#if defined(CONFIG_HAVE_FSP) || defined(CONFIG_SYS_SLIMBOOTLOADER)

Same as above.

-- 
With Best Regards,
Andy Shevchenko


More information about the U-Boot mailing list