diff options
Diffstat (limited to 'roms/u-boot/board/intel/slimbootloader')
4 files changed, 61 insertions, 0 deletions
diff --git a/roms/u-boot/board/intel/slimbootloader/Kconfig b/roms/u-boot/board/intel/slimbootloader/Kconfig new file mode 100644 index 000000000..8c7e22cc3 --- /dev/null +++ b/roms/u-boot/board/intel/slimbootloader/Kconfig @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2019 Intel Corporation <www.intel.com> + +if TARGET_SLIMBOOTLOADER + +config SYS_BOARD + default "slimbootloader" + +config SYS_VENDOR + default "intel" + +config SYS_SOC + default "slimbootloader" + +config SYS_CONFIG_NAME + default "slimbootloader" + +config SYS_TEXT_BASE + default 0x00100000 + +config BOARD_SPECIFIC_OPTIONS + def_bool y + select SYS_SLIMBOOTLOADER + select USB_STORAGE + select USB_KEYBOARD + +endif diff --git a/roms/u-boot/board/intel/slimbootloader/MAINTAINERS b/roms/u-boot/board/intel/slimbootloader/MAINTAINERS new file mode 100644 index 000000000..e6935517e --- /dev/null +++ b/roms/u-boot/board/intel/slimbootloader/MAINTAINERS @@ -0,0 +1,6 @@ +Intel Slim Bootloader Payload +M: Aiden Park <aiden.park@intel.com> +S: Maintained +F: board/intel/slimbootloader +F: include/configs/slimbootloader.h +F: configs/slimbootloader_defconfig diff --git a/roms/u-boot/board/intel/slimbootloader/Makefile b/roms/u-boot/board/intel/slimbootloader/Makefile new file mode 100644 index 000000000..50330cc6e --- /dev/null +++ b/roms/u-boot/board/intel/slimbootloader/Makefile @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2019 Intel Corporation <www.intel.com> + +obj-y += slimbootloader.o diff --git a/roms/u-boot/board/intel/slimbootloader/slimbootloader.c b/roms/u-boot/board/intel/slimbootloader/slimbootloader.c new file mode 100644 index 000000000..b20ddf0c6 --- /dev/null +++ b/roms/u-boot/board/intel/slimbootloader/slimbootloader.c @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Intel Corporation <www.intel.com> + */ + +#include <common.h> +#include <init.h> + +int board_early_init_r(void) +{ + /* + * Make sure PCI bus is enumerated so that peripherals on the PCI bus + * can be discovered by their drivers. + * + * Slim Bootloader has already done PCI bus enumeration before loading + * U-Boot, so U-Boot needs to preserve PCI configuration. + * Therefore, '# CONFIG_PCI_PNP is not set' is included in defconfig. + */ + pci_init(); + + return 0; +} |