From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- roms/u-boot/board/intel/slimbootloader/Kconfig | 28 ++++++++++++++++++++++ roms/u-boot/board/intel/slimbootloader/MAINTAINERS | 6 +++++ roms/u-boot/board/intel/slimbootloader/Makefile | 5 ++++ .../board/intel/slimbootloader/slimbootloader.c | 22 +++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 roms/u-boot/board/intel/slimbootloader/Kconfig create mode 100644 roms/u-boot/board/intel/slimbootloader/MAINTAINERS create mode 100644 roms/u-boot/board/intel/slimbootloader/Makefile create mode 100644 roms/u-boot/board/intel/slimbootloader/slimbootloader.c (limited to 'roms/u-boot/board/intel/slimbootloader') 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 + +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 +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 + +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 + */ + +#include +#include + +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; +} -- cgit