GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)

This commit is contained in:
lai
2026-09-06 03:52:57 +08:00
commit b1928b41c0
21813 changed files with 4413081 additions and 0 deletions
@@ -0,0 +1,30 @@
config SYS_BOARD
default "dfi-bt700"
config SYS_VENDOR
default "dfi"
config SYS_SOC
default "baytrail"
config SYS_CONFIG_NAME
default "dfi-bt700" if TARGET_Q7X_151_DFI_BT700
default "theadorable-x86-dfi-bt700" if TARGET_THEADORABLE_X86_DFI_BT700
config SYS_TEXT_BASE
default 0xfff00000
config BOARD_SPECIFIC_OPTIONS # dummy
def_bool y
select X86_RESET_VECTOR
select INTEL_BAYTRAIL
select BOARD_ROMSIZE_KB_8192
select BOARD_EARLY_INIT_F
select BOARD_LATE_INIT
select SPI_FLASH_STMICRO
imply SPI_FLASH_SPANSION
imply SPI_FLASH_WINBOND
select SERIAL_RX_BUFFER
config PCIE_ECAM_BASE
default 0xe0000000
@@ -0,0 +1,11 @@
congatec DFI-BT700
M: Stefan Roese <sr@denx.de>
S: Maintained
F: board/dfi/dfi-bt700
F: include/configs/dfi-bt700.h
F: include/configs/theadorable-x86-dfi-bt700.h
F: configs/dfi-bt700-q7x-151_defconfig
F: configs/theadorable-x86-dfi-bt700_defconfig
F: arch/x86/dts/dfi-bt700.dtsi
F: arch/x86/dts/dfi-bt700-q7x-151.dts
F: arch/x86/dts/theadorable-x86-dfi-bt700.dts
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (C) 2015, Google, Inc
obj-y += dfi-bt700.o start.o
obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o
@@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
/* Power Button */
Device (PWRB)
{
Name(_HID, EISAID("PNP0C0C"))
}
/* TODO: Need add Nuvoton SuperIO chipset NCT6102D ASL codes */
@@ -0,0 +1,57 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2016 Stefan Roese <sr@denx.de>
*/
#include <common.h>
#include <init.h>
#include <nuvoton_nct6102d.h>
#include <asm/gpio.h>
#include <asm/ibmpc.h>
#include <asm/pnp_def.h>
int board_early_init_f(void)
{
#ifdef CONFIG_INTERNAL_UART
/* Disable the legacy UART which is enabled per default */
nct6102d_uarta_disable();
#else
/*
* The FSP enables the BayTrail internal legacy UART (again).
* Disable it again, so that the Nuvoton one can be used.
*/
setup_internal_uart(0);
#endif
/* Disable the watchdog which is enabled per default */
nct6102d_wdt_disable();
return 0;
}
int board_late_init(void)
{
struct gpio_desc desc;
int ret;
ret = dm_gpio_lookup_name("F10", &desc);
if (ret)
debug("gpio ret=%d\n", ret);
ret = dm_gpio_request(&desc, "xhci_hub_reset");
if (ret)
debug("gpio_request ret=%d\n", ret);
ret = dm_gpio_set_dir_flags(&desc, GPIOD_IS_OUT);
if (ret)
debug("gpio dir ret=%d\n", ret);
/* Pull xHCI hub reset to low (active low) */
dm_gpio_set_value(&desc, 0);
/* Wait at least 5 ms, so lets choose 10 to be safe */
mdelay(10);
/* Pull xHCI hub reset to high (active low) */
dm_gpio_set_value(&desc, 1);
return 0;
}
@@ -0,0 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
*/
DefinitionBlock("dsdt.aml", "DSDT", 2, "U-BOOT", "U-BOOTBL", 0x00010000)
{
/* platform specific */
#include <asm/arch/acpi/platform.asl>
/* board specific */
#include "acpi/mainboard.asl"
}
@@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2015, Google, Inc
*/
.globl early_board_init
early_board_init:
jmp early_board_init_ret