diff options
Diffstat (limited to 'roms/u-boot/board/dfi')
-rw-r--r-- | roms/u-boot/board/dfi/Kconfig | 40 | ||||
-rw-r--r-- | roms/u-boot/board/dfi/dfi-bt700/Kconfig | 30 | ||||
-rw-r--r-- | roms/u-boot/board/dfi/dfi-bt700/MAINTAINERS | 11 | ||||
-rw-r--r-- | roms/u-boot/board/dfi/dfi-bt700/Makefile | 6 | ||||
-rw-r--r-- | roms/u-boot/board/dfi/dfi-bt700/acpi/mainboard.asl | 12 | ||||
-rw-r--r-- | roms/u-boot/board/dfi/dfi-bt700/dfi-bt700.c | 59 | ||||
-rw-r--r-- | roms/u-boot/board/dfi/dfi-bt700/dsdt.asl | 13 |
7 files changed, 171 insertions, 0 deletions
diff --git a/roms/u-boot/board/dfi/Kconfig b/roms/u-boot/board/dfi/Kconfig new file mode 100644 index 000000000..267ac50a3 --- /dev/null +++ b/roms/u-boot/board/dfi/Kconfig @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> + +if VENDOR_DFI + +choice + prompt "Mainboard model" + +config TARGET_Q7X_151_DFI_BT700 + bool "DFI BT700 BayTrail on DFI Q7X-151 baseboard" + imply SCSI + help + This is the DFI Q7X-151 baseboard equipped with the + DFI BayTrail Bt700 SoM. It contains an Atom E3845 with + Ethernet (in non-PCIe-x4 configuration), micro-SD, USB 2, + USB 3, SATA, serial console and DisplayPort video out. + It requires some binary blobs - see README.x86 for details. + + Note that PCIE_ECAM_BASE is set up by the FSP so the value used + by U-Boot matches that value. + +config TARGET_THEADORABLE_X86_DFI_BT700 + bool "DFI BT700 BayTrail on theadorable-x86 baseboard" + imply SCSI + help + This is the theadorable-x86 baseboard equipped with the + DFI BayTrail Bt700 SoM. It contains an Atom E3845 with + Ethernet (in non-PCIe-x4 configuration), micro-SD, USB 2, + USB 3, SATA, serial console and DisplayPort video out. + It requires some binary blobs - see README.x86 for details. + + Note that PCIE_ECAM_BASE is set up by the FSP so the value used + by U-Boot matches that value. + +endchoice + +source "board/dfi/dfi-bt700/Kconfig" + +endif diff --git a/roms/u-boot/board/dfi/dfi-bt700/Kconfig b/roms/u-boot/board/dfi/dfi-bt700/Kconfig new file mode 100644 index 000000000..50c7b2a2f --- /dev/null +++ b/roms/u-boot/board/dfi/dfi-bt700/Kconfig @@ -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 diff --git a/roms/u-boot/board/dfi/dfi-bt700/MAINTAINERS b/roms/u-boot/board/dfi/dfi-bt700/MAINTAINERS new file mode 100644 index 000000000..a99a7250b --- /dev/null +++ b/roms/u-boot/board/dfi/dfi-bt700/MAINTAINERS @@ -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 diff --git a/roms/u-boot/board/dfi/dfi-bt700/Makefile b/roms/u-boot/board/dfi/dfi-bt700/Makefile new file mode 100644 index 000000000..50d88f295 --- /dev/null +++ b/roms/u-boot/board/dfi/dfi-bt700/Makefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2015, Google, Inc + +obj-y += dfi-bt700.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o diff --git a/roms/u-boot/board/dfi/dfi-bt700/acpi/mainboard.asl b/roms/u-boot/board/dfi/dfi-bt700/acpi/mainboard.asl new file mode 100644 index 000000000..4863fbf6d --- /dev/null +++ b/roms/u-boot/board/dfi/dfi-bt700/acpi/mainboard.asl @@ -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 */ diff --git a/roms/u-boot/board/dfi/dfi-bt700/dfi-bt700.c b/roms/u-boot/board/dfi/dfi-bt700/dfi-bt700.c new file mode 100644 index 000000000..87506a77a --- /dev/null +++ b/roms/u-boot/board/dfi/dfi-bt700/dfi-bt700.c @@ -0,0 +1,59 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2016 Stefan Roese <sr@denx.de> + */ + +#include <common.h> +#include <init.h> +#include <log.h> +#include <nuvoton_nct6102d.h> +#include <asm/gpio.h> +#include <asm/ibmpc.h> +#include <asm/pnp_def.h> +#include <linux/delay.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; +} diff --git a/roms/u-boot/board/dfi/dfi-bt700/dsdt.asl b/roms/u-boot/board/dfi/dfi-bt700/dsdt.asl new file mode 100644 index 000000000..d2297ef59 --- /dev/null +++ b/roms/u-boot/board/dfi/dfi-bt700/dsdt.asl @@ -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" +} |