GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
if VENDOR_EFI
|
||||
|
||||
choice
|
||||
prompt "Mainboard model"
|
||||
optional
|
||||
|
||||
config TARGET_EFI_APP
|
||||
bool "efi application"
|
||||
help
|
||||
This target is used for running U-Boot on top of EFI. In
|
||||
this case EFI does the early initialisation, and U-Boot
|
||||
takes over once the RAM, video and CPU are fully running.
|
||||
U-Boot is loaded as an application from EFI.
|
||||
|
||||
config TARGET_EFI_PAYLOAD
|
||||
bool "efi payload"
|
||||
help
|
||||
This target is used for running U-Boot on top of EFI. In
|
||||
this case EFI does the early initialisation, and U-Boot
|
||||
takes over once the RAM, video and CPU are fully running.
|
||||
U-Boot is loaded as a payload from EFI.
|
||||
|
||||
endchoice
|
||||
|
||||
source "board/efi/efi-x86_app/Kconfig"
|
||||
source "board/efi/efi-x86_payload/Kconfig"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,15 @@
|
||||
if TARGET_EFI_APP
|
||||
|
||||
config SYS_BOARD
|
||||
default "efi-x86_app"
|
||||
|
||||
config SYS_VENDOR
|
||||
default "efi"
|
||||
|
||||
config SYS_SOC
|
||||
default "efi"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "efi-x86_app"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,6 @@
|
||||
EFI-X86_APP BOARD
|
||||
M: Simon Glass <sjg@chromium.org>
|
||||
S: Maintained
|
||||
F: board/efi/efi-x86_app/
|
||||
F: include/configs/efi-x86_app.h
|
||||
F: configs/efi-x86_app_defconfig
|
||||
@@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Copyright (c) 2015 Google, Inc
|
||||
|
||||
obj-y += app.o
|
||||
@@ -0,0 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright (C) 2015 Google, Inc
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
@@ -0,0 +1,40 @@
|
||||
if TARGET_EFI_PAYLOAD
|
||||
|
||||
config SYS_BOARD
|
||||
default "efi-x86_payload"
|
||||
|
||||
config SYS_VENDOR
|
||||
default "efi"
|
||||
|
||||
config SYS_SOC
|
||||
default "efi"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "efi-x86_payload"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0x00200000
|
||||
|
||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
def_bool y
|
||||
select BOARD_EARLY_INIT_R
|
||||
imply SYS_NS16550
|
||||
imply SCSI
|
||||
imply SCSI_AHCI
|
||||
imply AHCI_PCI
|
||||
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 VIDEO_EFI
|
||||
imply E1000
|
||||
imply ETH_DESIGNWARE
|
||||
imply PCH_GBE
|
||||
imply RTL8169
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,7 @@
|
||||
EFI-X86_PAYLOAD BOARD
|
||||
M: Bin Meng <bmeng.cn@gmail.com>
|
||||
S: Maintained
|
||||
F: board/efi/efi-x86_payload/
|
||||
F: include/configs/efi-x86_payload.h
|
||||
F: configs/efi-x86_payload32_defconfig
|
||||
F: configs/efi-x86_payload64_defconfig
|
||||
@@ -0,0 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
|
||||
|
||||
obj-y += start.o payload.o
|
||||
@@ -0,0 +1,19 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <init.h>
|
||||
#include <usb.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
|
||||
*/
|
||||
pci_init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
|
||||
*/
|
||||
|
||||
.globl early_board_init
|
||||
early_board_init:
|
||||
jmp early_board_init_ret
|
||||
Reference in New Issue
Block a user