All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob
@ 2017-07-17 14:03 Stefan Roese
  2017-07-17 14:03 ` [U-Boot] [PATCH 02/12] x86: dfi: Add option to select different config headers for baseboards Stefan Roese
                   ` (11 more replies)
  0 siblings, 12 replies; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

To support the Micron SPI NOR flashes, this patch enables the support in
defconfig. This increases the U-Boot binary too much so that it does
not fit into its area in the ROM. So also move the VIDEO BIOS blob
a bit to make some space here.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 configs/theadorable-x86-dfi-bt700_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/theadorable-x86-dfi-bt700_defconfig b/configs/theadorable-x86-dfi-bt700_defconfig
index 1703cee841..30a40e3b16 100644
--- a/configs/theadorable-x86-dfi-bt700_defconfig
+++ b/configs/theadorable-x86-dfi-bt700_defconfig
@@ -6,6 +6,7 @@ CONFIG_HAVE_INTEL_ME=y
 CONFIG_ENABLE_MRC_CACHE=y
 CONFIG_SMP=y
 CONFIG_HAVE_VGA_BIOS=y
+CONFIG_VGA_BIOS_ADDR=0xfffa0000
 CONFIG_GENERATE_PIRQ_TABLE=y
 CONFIG_GENERATE_MP_TABLE=y
 CONFIG_GENERATE_ACPI_TABLE=y
@@ -53,6 +54,7 @@ CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_DM_ETH=y
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 02/12] x86: dfi: Add option to select different config headers for baseboards
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
@ 2017-07-17 14:03 ` Stefan Roese
  2017-07-18  1:14   ` Bin Meng
  2017-07-17 14:03 ` [U-Boot] [PATCH 03/12] x86: conga: " Stefan Roese
                   ` (10 subsequent siblings)
  11 siblings, 1 reply; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

This patch adds the infrastructure to define different config headers
with different configurations and default environment for the baseboards
that can now be selected via Kconfig. The new configuration for the
theadorable-x86-dfi-bt700 is also added.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 board/dfi/Kconfig                           | 17 ++++++--
 board/dfi/dfi-bt700/Kconfig                 |  7 +---
 board/dfi/dfi-bt700/MAINTAINERS             |  1 +
 configs/dfi-bt700-q7x-151_defconfig         |  2 +-
 configs/theadorable-x86-dfi-bt700_defconfig |  2 +-
 include/configs/theadorable-x86-dfi-bt700.h | 60 +++++++++++++++++++++++++++++
 6 files changed, 79 insertions(+), 10 deletions(-)
 create mode 100644 include/configs/theadorable-x86-dfi-bt700.h

diff --git a/board/dfi/Kconfig b/board/dfi/Kconfig
index 25d0a11ce1..ed9966adf6 100644
--- a/board/dfi/Kconfig
+++ b/board/dfi/Kconfig
@@ -8,10 +8,9 @@ if VENDOR_DFI
 
 choice
 	prompt "Mainboard model"
-	optional
 
-config TARGET_DFI_BT700
-	bool "DFI BT700 BayTrail"
+config TARGET_Q7X_151_DFI_BT700
+	bool "DFI BT700 BayTrail on DFI Q7X-151 baseboard"
 	help
 	  This is the DFI Q7X-151 baseboard equipped with the
 	  DFI BayTrail Bt700 SoM. It contains an Atom E3845 with
@@ -22,6 +21,18 @@ config TARGET_DFI_BT700
 	  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"
+	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"
diff --git a/board/dfi/dfi-bt700/Kconfig b/board/dfi/dfi-bt700/Kconfig
index 3f0acb39f7..88c4ddeee9 100644
--- a/board/dfi/dfi-bt700/Kconfig
+++ b/board/dfi/dfi-bt700/Kconfig
@@ -1,5 +1,3 @@
-if TARGET_DFI_BT700
-
 config SYS_BOARD
 	default "dfi-bt700"
 
@@ -10,7 +8,8 @@ config SYS_SOC
 	default "baytrail"
 
 config SYS_CONFIG_NAME
-	default "dfi-bt700"
+	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 if !EFI_STUB
@@ -24,5 +23,3 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 
 config PCIE_ECAM_BASE
 	default 0xe0000000
-
-endif
diff --git a/board/dfi/dfi-bt700/MAINTAINERS b/board/dfi/dfi-bt700/MAINTAINERS
index 6639787814..a99a7250b8 100644
--- a/board/dfi/dfi-bt700/MAINTAINERS
+++ b/board/dfi/dfi-bt700/MAINTAINERS
@@ -3,6 +3,7 @@ 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
diff --git a/configs/dfi-bt700-q7x-151_defconfig b/configs/dfi-bt700-q7x-151_defconfig
index c86e0a9e4f..8397d13951 100644
--- a/configs/dfi-bt700-q7x-151_defconfig
+++ b/configs/dfi-bt700-q7x-151_defconfig
@@ -1,7 +1,7 @@
 CONFIG_X86=y
 CONFIG_VENDOR_DFI=y
 CONFIG_DEFAULT_DEVICE_TREE="dfi-bt700-q7x-151"
-CONFIG_TARGET_DFI_BT700=y
+CONFIG_TARGET_Q7X_151_DFI_BT700=y
 CONFIG_DEBUG_UART=y
 CONFIG_HAVE_INTEL_ME=y
 CONFIG_ENABLE_MRC_CACHE=y
diff --git a/configs/theadorable-x86-dfi-bt700_defconfig b/configs/theadorable-x86-dfi-bt700_defconfig
index 30a40e3b16..e00e3801bc 100644
--- a/configs/theadorable-x86-dfi-bt700_defconfig
+++ b/configs/theadorable-x86-dfi-bt700_defconfig
@@ -1,7 +1,7 @@
 CONFIG_X86=y
 CONFIG_VENDOR_DFI=y
 CONFIG_DEFAULT_DEVICE_TREE="theadorable-x86-dfi-bt700"
-CONFIG_TARGET_DFI_BT700=y
+CONFIG_TARGET_THEADORABLE_X86_DFI_BT700=y
 CONFIG_HAVE_INTEL_ME=y
 CONFIG_ENABLE_MRC_CACHE=y
 CONFIG_SMP=y
diff --git a/include/configs/theadorable-x86-dfi-bt700.h b/include/configs/theadorable-x86-dfi-bt700.h
new file mode 100644
index 0000000000..e4a5d5765b
--- /dev/null
+++ b/include/configs/theadorable-x86-dfi-bt700.h
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2016 Stefan Roese <sr@denx.de>
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+/*
+ * board/config.h - configuration options, board specific
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#include <configs/x86-common.h>
+
+#define CONFIG_SYS_MONITOR_LEN		(1 << 20)
+#define CONFIG_BOARD_EARLY_INIT_F
+
+#define CONFIG_PREBOOT
+
+/* Use BayTrail internal HS UART which is memory-mapped */
+#undef  CONFIG_SYS_NS16550_PORT_MAPPED
+
+#define CONFIG_STD_DEVICES_SETTINGS     "stdin=serial\0" \
+					"stdout=serial\0" \
+					"stderr=serial\0"
+
+#define CONFIG_SCSI_DEV_LIST		\
+	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
+	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
+
+#define CONFIG_MMC
+#define CONFIG_SDHCI
+#define CONFIG_GENERIC_MMC
+#define CONFIG_MMC_SDMA
+
+#undef CONFIG_USB_MAX_CONTROLLER_COUNT
+#define CONFIG_USB_MAX_CONTROLLER_COUNT		1
+
+#define CONFIG_USB_HOST_ETHER
+#define CONFIG_USB_ETHER_ASIX
+#define CONFIG_USB_ETHER_SMSC95XX
+#define CONFIG_USB_ETHER_MCS7830
+#define CONFIG_USB_ETHER_RTL8152
+
+#define VIDEO_IO_OFFSET				0
+#define CONFIG_X86EMU_RAW_IO
+#define CONFIG_CMD_BMP
+#define CONFIG_BMP_16BPP
+
+/* Environment settings */
+#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
+#undef CONFIG_ENV_SIZE
+#define CONFIG_ENV_SIZE			0x2000
+#define CONFIG_ENV_SECT_SIZE		0x1000
+#define CONFIG_ENV_OFFSET		0x006ec000
+#define CONFIG_ENV_OFFSET_REDUND	\
+	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
+
+#endif	/* __CONFIG_H */
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 03/12] x86: conga: Add option to select different config headers for baseboards
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
  2017-07-17 14:03 ` [U-Boot] [PATCH 02/12] x86: dfi: Add option to select different config headers for baseboards Stefan Roese
@ 2017-07-17 14:03 ` Stefan Roese
  2017-07-18  1:14   ` Bin Meng
  2017-07-17 14:03 ` [U-Boot] [PATCH 04/12] x86: theadorable-x86: Add header file for common defines and env Stefan Roese
                   ` (9 subsequent siblings)
  11 siblings, 1 reply; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

This patch adds the infrastructure to define different config headers
with different configurations and default environment for the baseboards
that can now be selected via Kconfig. The new configuration for the
theadorable-x86-conga-qa3-e3845 is also added. Also the new defconfig
file for this new target is added.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 board/congatec/Kconfig                             | 11 ++++
 board/congatec/conga-qeval20-qa3-e3845/Kconfig     |  7 +-
 board/congatec/conga-qeval20-qa3-e3845/MAINTAINERS |  2 +
 configs/theadorable-x86-conga-qa3-e3845_defconfig  | 77 ++++++++++++++++++++++
 include/configs/theadorable-x86-conga-qa3-e3845.h  | 54 +++++++++++++++
 5 files changed, 146 insertions(+), 5 deletions(-)
 create mode 100644 configs/theadorable-x86-conga-qa3-e3845_defconfig
 create mode 100644 include/configs/theadorable-x86-conga-qa3-e3845.h

diff --git a/board/congatec/Kconfig b/board/congatec/Kconfig
index 875d1ae07b..31c12028ee 100644
--- a/board/congatec/Kconfig
+++ b/board/congatec/Kconfig
@@ -23,6 +23,17 @@ config TARGET_CONGA_QEVAL20_QA3_E3845
 	  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_CONGA_QA3_E3845
+	bool "theadorable-x86 baseboard & conga-QA3/E3845"
+	help
+	  This is the theadorable-x86 baseboard board equipped with the
+	  conga-QA3/E3845-4G SoM. It contains an Atom E3845 with Ethernet,
+	  micro-SD, USB 2, USB 3, SATA, serial console and HDMI 1.3 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/congatec/conga-qeval20-qa3-e3845/Kconfig"
diff --git a/board/congatec/conga-qeval20-qa3-e3845/Kconfig b/board/congatec/conga-qeval20-qa3-e3845/Kconfig
index 9f31238930..ac9ab90b8e 100644
--- a/board/congatec/conga-qeval20-qa3-e3845/Kconfig
+++ b/board/congatec/conga-qeval20-qa3-e3845/Kconfig
@@ -1,5 +1,3 @@
-if TARGET_CONGA_QEVAL20_QA3_E3845
-
 config SYS_BOARD
 	default "conga-qeval20-qa3-e3845"
 
@@ -10,7 +8,8 @@ config SYS_SOC
 	default "baytrail"
 
 config SYS_CONFIG_NAME
-	default "conga-qeval20-qa3-e3845"
+	default "conga-qeval20-qa3-e3845" if TARGET_CONGA_QEVAL20_QA3_E3845
+	default "theadorable-x86-conga-qa3-e3845" if TARGET_THEADORABLE_X86_CONGA_QA3_E3845
 
 config SYS_TEXT_BASE
 	default 0xfff00000 if !EFI_STUB
@@ -24,5 +23,3 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 
 config PCIE_ECAM_BASE
 	default 0xe0000000
-
-endif
diff --git a/board/congatec/conga-qeval20-qa3-e3845/MAINTAINERS b/board/congatec/conga-qeval20-qa3-e3845/MAINTAINERS
index 3d7e8e2d61..6e065590ab 100644
--- a/board/congatec/conga-qeval20-qa3-e3845/MAINTAINERS
+++ b/board/congatec/conga-qeval20-qa3-e3845/MAINTAINERS
@@ -3,6 +3,8 @@ M:	Stefan Roese <sr@denx.de>
 S:	Maintained
 F:	board/congatec/conga-qeval20-qa3-e3845
 F:	include/configs/conga-qeval20-qa3-e3845.h
+F:	include/configs/theadorable-x86-conga-qa3-e3845.h
 F:	configs/conga-qeval20-qa3-e3845_defconfig
 F:	configs/conga-qeval20-qa3-e3845-internal-uart_defconfig
+F:	configs/theadorable-x86-conga-qa3-e3845_defconfig
 F:	arch/x86/dts/conga-qeval20-qa3-e3845.dts
diff --git a/configs/theadorable-x86-conga-qa3-e3845_defconfig b/configs/theadorable-x86-conga-qa3-e3845_defconfig
new file mode 100644
index 0000000000..5082dda0c1
--- /dev/null
+++ b/configs/theadorable-x86-conga-qa3-e3845_defconfig
@@ -0,0 +1,77 @@
+CONFIG_X86=y
+CONFIG_VENDOR_CONGATEC=y
+CONFIG_TARGET_THEADORABLE_X86_CONGA_QA3_E3845=y
+CONFIG_DEFAULT_DEVICE_TREE="conga-qeval20-qa3-e3845"
+CONFIG_INTERNAL_UART=y
+CONFIG_HAVE_INTEL_ME=y
+CONFIG_ENABLE_MRC_CACHE=y
+CONFIG_SMP=y
+CONFIG_HAVE_VGA_BIOS=y
+CONFIG_VGA_BIOS_ADDR=0xfffa0000
+CONFIG_GENERATE_PIRQ_TABLE=y
+CONFIG_GENERATE_MP_TABLE=y
+CONFIG_GENERATE_ACPI_TABLE=y
+CONFIG_SEABIOS=y
+CONFIG_FIT=y
+CONFIG_FIT_SIGNATURE=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_REPORT=y
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_ARCH_MISC_INIT=y
+CONFIG_HUSH_PARSER=y
+CONFIG_CMD_CPU=y
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+CONFIG_CMD_MMC=y
+CONFIG_CMD_SF=y
+CONFIG_CMD_SPI=y
+CONFIG_CMD_I2C=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_GPIO=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_DHCP=y
+# CONFIG_CMD_NFS is not set
+CONFIG_CMD_PING=y
+CONFIG_CMD_TIME=y
+CONFIG_CMD_BOOTSTAGE=y
+CONFIG_CMD_EXT2=y
+CONFIG_CMD_EXT4=y
+CONFIG_CMD_EXT4_WRITE=y
+CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_OF_CONTROL=y
+CONFIG_REGMAP=y
+CONFIG_SYSCON=y
+CONFIG_CPU=y
+CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_INTEL=y
+CONFIG_WINBOND_W83627=y
+CONFIG_MMC=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_GIGADEVICE=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_SPANSION=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_DM_ETH=y
+CONFIG_E1000=y
+CONFIG_DM_PCI=y
+CONFIG_DM_RTC=y
+CONFIG_DEBUG_UART=y
+CONFIG_DEBUG_UART_BASE=0x3f8
+CONFIG_DEBUG_UART_CLOCK=1843200
+CONFIG_SYS_NS16550=y
+CONFIG_ICH_SPI=y
+CONFIG_TIMER=y
+CONFIG_USB=y
+CONFIG_DM_USB=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_KEYBOARD=y
+CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_VESA=y
+CONFIG_FRAMEBUFFER_SET_VESA_MODE=y
+CONFIG_FRAMEBUFFER_VESA_MODE_114=y
+CONFIG_CONSOLE_SCROLL_LINES=5
+CONFIG_USE_PRIVATE_LIBGCC=y
diff --git a/include/configs/theadorable-x86-conga-qa3-e3845.h b/include/configs/theadorable-x86-conga-qa3-e3845.h
new file mode 100644
index 0000000000..072559ae79
--- /dev/null
+++ b/include/configs/theadorable-x86-conga-qa3-e3845.h
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2016 Stefan Roese <sr@denx.de>
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+/*
+ * board/config.h - configuration options, board specific
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+
+#include <configs/x86-common.h>
+
+#define CONFIG_SYS_MONITOR_LEN		(1 << 20)
+#define CONFIG_BOARD_EARLY_INIT_F
+#define CONFIG_BOARD_LATE_INIT
+#define CONFIG_ARCH_EARLY_INIT_R
+#define CONFIG_ARCH_MISC_INIT
+
+#define CONFIG_PREBOOT
+
+#define CONFIG_STD_DEVICES_SETTINGS     "stdin=serial\0" \
+					"stdout=serial\0" \
+					"stderr=serial\0"
+
+#define CONFIG_SCSI_DEV_LIST		\
+	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
+	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
+
+#define CONFIG_MMC
+#define CONFIG_SDHCI
+#define CONFIG_GENERIC_MMC
+#define CONFIG_MMC_SDMA
+
+#undef CONFIG_USB_MAX_CONTROLLER_COUNT
+#define CONFIG_USB_MAX_CONTROLLER_COUNT		1
+
+#define VIDEO_IO_OFFSET				0
+#define CONFIG_X86EMU_RAW_IO
+#define CONFIG_CMD_BMP
+#define CONFIG_BMP_16BPP
+
+/* Environment settings */
+#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
+#undef CONFIG_ENV_SIZE
+#define CONFIG_ENV_SIZE			0x2000
+#define CONFIG_ENV_SECT_SIZE		0x1000
+#define CONFIG_ENV_OFFSET		0x006ec000
+#define CONFIG_ENV_OFFSET_REDUND	\
+	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
+
+#endif	/* __CONFIG_H */
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 04/12] x86: theadorable-x86: Add header file for common defines and env
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
  2017-07-17 14:03 ` [U-Boot] [PATCH 02/12] x86: dfi: Add option to select different config headers for baseboards Stefan Roese
  2017-07-17 14:03 ` [U-Boot] [PATCH 03/12] x86: conga: " Stefan Roese
@ 2017-07-17 14:03 ` Stefan Roese
  2017-07-18  1:14   ` Bin Meng
  2017-07-17 14:03 ` [U-Boot] [PATCH 05/12] x86: conga-qeval20-qa3-e3845: Select CONFIG_BOARD_LATE_INIT Stefan Roese
                   ` (8 subsequent siblings)
  11 siblings, 1 reply; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

This patch adds the common header include file theadorable-x86-common.h
for the theadorable-x86 targets to define all common options and the
default environment.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 include/configs/theadorable-x86-common.h          | 162 ++++++++++++++++++++++
 include/configs/theadorable-x86-conga-qa3-e3845.h |  48 ++-----
 include/configs/theadorable-x86-dfi-bt700.h       |  51 ++-----
 3 files changed, 186 insertions(+), 75 deletions(-)
 create mode 100644 include/configs/theadorable-x86-common.h

diff --git a/include/configs/theadorable-x86-common.h b/include/configs/theadorable-x86-common.h
new file mode 100644
index 0000000000..16ee882bc8
--- /dev/null
+++ b/include/configs/theadorable-x86-common.h
@@ -0,0 +1,162 @@
+/*
+ * Copyright (C) 2016 Stefan Roese <sr@denx.de>
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+/*
+ * Common options, macros and default environment for all
+ * theadorable x86 based boards
+ */
+
+#ifndef __THEADORABLE_X86_COMMON_H
+#define __THEADORABLE_X86_COMMON_H
+
+#define CONFIG_SYS_MONITOR_LEN		(1 << 20)
+
+#define CONFIG_PREBOOT
+
+#define CONFIG_STD_DEVICES_SETTINGS     "stdin=serial\0" \
+					"stdout=serial\0" \
+					"stderr=serial\0"
+
+#define CONFIG_SCSI_DEV_LIST		\
+	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
+	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
+
+#undef CONFIG_USB_MAX_CONTROLLER_COUNT
+#define CONFIG_USB_MAX_CONTROLLER_COUNT		1
+
+#define CONFIG_USB_HOST_ETHER
+#define CONFIG_USB_ETHER_ASIX
+#define CONFIG_USB_ETHER_SMSC95XX
+#define CONFIG_USB_ETHER_MCS7830
+#define CONFIG_USB_ETHER_RTL8152
+
+#define VIDEO_IO_OFFSET				0
+#define CONFIG_X86EMU_RAW_IO
+#define CONFIG_CMD_BMP
+#define CONFIG_BMP_16BPP
+
+/* Environment settings */
+#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
+#undef CONFIG_ENV_SIZE
+#define CONFIG_ENV_SIZE			0x2000
+#define CONFIG_ENV_SECT_SIZE		0x1000
+#define CONFIG_ENV_OFFSET		0x006ec000
+#define CONFIG_ENV_OFFSET_REDUND	\
+	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
+
+#undef CONFIG_BOOTARGS
+#undef CONFIG_BOOTCOMMAND
+#undef CONFIG_EXTRA_ENV_SETTINGS
+
+#define CONFIG_EXTRA_ENV_SETTINGS				\
+	"tftpdir=" DEF_ENV_TFTPDIR "\0"				\
+	"eth_init=" DEF_ENV_ETH_INIT "\0"			\
+	"ubuntu_part=" __stringify(DEF_ENV_UBUNTU_PART) "\0"	\
+	"yocto_part=" __stringify(DEF_ENV_YOCTO_PART) "\0"	\
+	"ubuntu_tty=" __stringify(DEF_ENV_UBUNTU_TTY) "\0"	\
+	"yocto_tty=" __stringify(DEF_ENV_YOCTO_TTY) "\0"	\
+	"start_eth=if test -n \"${eth_init}\";"			\
+		"then run eth_init;else sleep 0;fi\0"		\
+	"kernel-ver=4.8.0-54\0"					\
+	"boot=zboot 03000000 0 04000000 ${filesize}\0"		\
+	"mtdparts=mtdparts=intel-spi:4k(descriptor),7084k(me)," \
+		"8k(env1),8k(env2),64k(mrc),640k(u-boot),"	\
+		"64k(vga),-(fsp)\0"				\
+	"addtty_ubuntu=setenv bootargs ${bootargs} "		\
+		"console=ttyS${ubuntu_tty},${baudrate}\0"	\
+	"addtty_yocto=setenv bootargs ${bootargs} "		\
+		"console=ttyS${yocto_tty},${baudrate}\0"	\
+	"addmtd=setenv bootargs ${bootargs} ${mtdparts}\0"	\
+	"addmisc=setenv bootargs ${bootargs} "			\
+		"intel-spi.writeable=1 vmalloc=300M "		\
+		"pci=realloc=on,hpmemsize=0x12000000\0"		\
+	"bootcmd=if env exists recovery_status;"		\
+		"then run swupdate;"				\
+		"else run yocto_boot;run swupdate;"		\
+		"fi\0"						\
+	"ubuntu_args=setenv bootargs "				\
+		"root=/dev/sda${ubuntu_part} ro\0"		\
+	"ubuntu_args_quiet=setenv bootargs "			\
+		"root=/dev/sda${ubuntu_part} ro quiet\0"	\
+	"ubuntu_load=load scsi 0:${ubuntu_part} 03000000 "	\
+		"/boot/vmlinuz-${kernel-ver}-generic;"		\
+		"load scsi 0:${ubuntu_part} 04000000 "		\
+		"/boot/initrd.img-${kernel-ver}-generic\0"	\
+	"ubuntu_boot=run ubuntu_args_quiet addmtd addmisc "	\
+		"ubuntu_load boot\0"				\
+	"ubuntu_boot_console=run ubuntu_args addtty_ubuntu "	\
+		"addmtd addmisc ubuntu_load boot\0"		\
+	"net_args=setenv bootargs root=/dev/sda${ubuntu_part} ro\0" \
+	"net_boot=run start_eth net_args addtty_yocto addmtd addmisc;" \
+		"tftp 03000000 ${tftpdir}/bzImage;"		\
+		"load scsi 0:${ubuntu_part} 04000000 "		\
+		"/boot/initrd.img-${kernel-ver}-generic;"	\
+		"run boot\0"					\
+	"yocto_args=setenv bootargs root=/dev/sda${yocto_part} " \
+		"ip=dhcp panic=1\0"				\
+	"yocto_args_fast=setenv bootargs root=/dev/sda${yocto_part} " \
+		"quiet panic=1\0"				\
+	"yocto_boot=run yocto_args addmtd addmisc addtty_yocto;" \
+		"if run yocto_load;then zboot 03000000;fi\0"	\
+	"yocto_boot_fast=run yocto_args_fast addmtd addmisc "	\
+		"addtty_yocto yocto_load;zboot 03000000\0"	\
+	"yocto_boot_tftp=run yocto_args addmtd addmisc addtty_yocto " \
+		"start_eth yocto_load_tftp;zboot 03000000\0"	\
+	"yocto_kernel=bzImage\0"				\
+	"yocto_load=load scsi 0:${yocto_part} 03000000 "	\
+		"/boot/${yocto_kernel}\0"			\
+	"yocto_load_tftp=tftp 03000000 dfi/bzImage\0"		\
+	"swupdate=if env exists swupdate_factory;"		\
+		"then run swupdate_usb;run swupdate_run;"	\
+		"else setenv swupdate_part 2;run swupdate_mmc;" \
+			"run swupdate_run;setenv swupdate_part 1;" \
+			"run swupdate_mmc;run swupdate_usb;"	\
+			"run swupdate_run;"			\
+		"fi\0"						\
+	"swupdate-initrd=/boot/swupdate-image-theadorable.ext4.gz\0" \
+	"swupdate-kernel=/boot/bzImage\0"			\
+	"swupdate_args=setenv bootargs root=/dev/ram rw ip=dhcp panic=1\0" \
+	"swupdate_dev=0\0"					\
+	"swupdate_factory=0\0"					\
+	"swupdate_interface=usb\0"				\
+	"swupdate_kernel=vmlinuz-4.4.0-28-generic\0"		\
+	"swupdate_load=load ${swupdate_interface} ${swupdate_dev}:" \
+		"${swupdate_part} 03000000 ${swupdate-kernel}"	\
+		" && load ${swupdate_interface} ${swupdate_dev}:" \
+		"${swupdate_part} 04000000 ${swupdate-initrd}\0" \
+	"swupdate_mmc=setenv swupdate_interface mmc;"		\
+		"setenv swupdate_dev ${swupdate_mmcdev};"	\
+		"setenv swupdate_part 1;"			\
+		"mmc dev ${swupdate_dev};mmc rescan\0"		\
+	"swupdate_mmcdev=0\0"					\
+	"swupdate_part=1\0"					\
+	"swupdate_run=run swupdate_args addtty_yocto addmtd addmisc;" \
+		"if run swupdate_load;then run boot;"		\
+		"else echo SWUpdate cannot be started from "	\
+		"${swupdate_interface};"			\
+		"fi\0"						\
+	"swupdate_usb=setenv swupdate_interface usb;"		\
+		"setenv swupdate_dev 0;setenv swupdate_part 1;"	\
+		"usb start\0"					\
+	"logo_tftp=tftp ${loadaddr} ${tftpdir}/logo.bmp;"	\
+		"bmp display ${loadaddr}\0"			\
+	"preboot=load scsi 0:${ubuntu_part} ${loadaddr} "	\
+		"/boot/logo/logo.bmp;bmp display ${loadaddr}\0" \
+	"rootpath=/tftpboot/theadorable-x86-conga/work/"	\
+		"rootfs-yocto-swupdate-2017-03-29\0"		\
+	"addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:" \
+		"${gatewayip}:${netmask}:${hostname}:eth0:off\0" \
+	"set_bootargs_nfs=setenv bootargs root=/dev/nfs rw "	\
+		"nfsroot=${serverip}:${rootpath},tcp,nfsvers=3\0" \
+	"net_nfs=run start_eth set_bootargs_nfs addtty_yocto addip " \
+		"addmtd addmisc;tftp 03000000 ${tftpdir}/bzImage;" \
+		"zboot 03000000\0"				\
+	"load_uboot=tftp ${loadaddr} ${tftpdir}/u-boot.rom\0"	\
+	"update_uboot=sf probe;"				\
+		"sf update ${loadaddr} 0 800000;saveenv\0"	\
+	"upd_uboot=run start_eth load_uboot update_uboot\0"
+
+#endif /* __THEADORABLE_X86_COMMON_H */
diff --git a/include/configs/theadorable-x86-conga-qa3-e3845.h b/include/configs/theadorable-x86-conga-qa3-e3845.h
index 072559ae79..bc0e078cff 100644
--- a/include/configs/theadorable-x86-conga-qa3-e3845.h
+++ b/include/configs/theadorable-x86-conga-qa3-e3845.h
@@ -13,42 +13,18 @@
 
 #include <configs/x86-common.h>
 
-#define CONFIG_SYS_MONITOR_LEN		(1 << 20)
-#define CONFIG_BOARD_EARLY_INIT_F
-#define CONFIG_BOARD_LATE_INIT
-#define CONFIG_ARCH_EARLY_INIT_R
-#define CONFIG_ARCH_MISC_INIT
+/* Set the board specific parameters */
+#define DEF_ENV_TFTPDIR		"theadorable-x86-conga"
+#define DEF_ENV_ETH_INIT	""
+#define DEF_ENV_UBUNTU_PART	2
+#define DEF_ENV_UBUNTU_TTY	0	/* Use ttyS0 */
+#define DEF_ENV_YOCTO_PART	3
+#define DEF_ENV_YOCTO_TTY	0	/* Use ttyS0 */
 
-#define CONFIG_PREBOOT
-
-#define CONFIG_STD_DEVICES_SETTINGS     "stdin=serial\0" \
-					"stdout=serial\0" \
-					"stderr=serial\0"
-
-#define CONFIG_SCSI_DEV_LIST		\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
-
-#define CONFIG_MMC
-#define CONFIG_SDHCI
-#define CONFIG_GENERIC_MMC
-#define CONFIG_MMC_SDMA
-
-#undef CONFIG_USB_MAX_CONTROLLER_COUNT
-#define CONFIG_USB_MAX_CONTROLLER_COUNT		1
-
-#define VIDEO_IO_OFFSET				0
-#define CONFIG_X86EMU_RAW_IO
-#define CONFIG_CMD_BMP
-#define CONFIG_BMP_16BPP
-
-/* Environment settings */
-#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
-#undef CONFIG_ENV_SIZE
-#define CONFIG_ENV_SIZE			0x2000
-#define CONFIG_ENV_SECT_SIZE		0x1000
-#define CONFIG_ENV_OFFSET		0x006ec000
-#define CONFIG_ENV_OFFSET_REDUND	\
-	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
+/*
+ * Include the theadorable-x86 common options, macros and default
+ * environment
+ */
+#include <configs/theadorable-x86-common.h>
 
 #endif	/* __CONFIG_H */
diff --git a/include/configs/theadorable-x86-dfi-bt700.h b/include/configs/theadorable-x86-dfi-bt700.h
index e4a5d5765b..2e15d74ced 100644
--- a/include/configs/theadorable-x86-dfi-bt700.h
+++ b/include/configs/theadorable-x86-dfi-bt700.h
@@ -13,48 +13,21 @@
 
 #include <configs/x86-common.h>
 
-#define CONFIG_SYS_MONITOR_LEN		(1 << 20)
-#define CONFIG_BOARD_EARLY_INIT_F
-
-#define CONFIG_PREBOOT
-
 /* Use BayTrail internal HS UART which is memory-mapped */
 #undef  CONFIG_SYS_NS16550_PORT_MAPPED
 
-#define CONFIG_STD_DEVICES_SETTINGS     "stdin=serial\0" \
-					"stdout=serial\0" \
-					"stderr=serial\0"
-
-#define CONFIG_SCSI_DEV_LIST		\
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA}, \
-	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
-
-#define CONFIG_MMC
-#define CONFIG_SDHCI
-#define CONFIG_GENERIC_MMC
-#define CONFIG_MMC_SDMA
-
-#undef CONFIG_USB_MAX_CONTROLLER_COUNT
-#define CONFIG_USB_MAX_CONTROLLER_COUNT		1
+/* Set the board specific parameters */
+#define DEF_ENV_TFTPDIR		"theadorable-x86-dfi"
+#define DEF_ENV_ETH_INIT	"usb reset"
+#define DEF_ENV_UBUNTU_PART	1
+#define DEF_ENV_UBUNTU_TTY	4	/* Use ttyS4 */
+#define DEF_ENV_YOCTO_PART	2
+#define DEF_ENV_YOCTO_TTY	1	/* Use ttyS1 */
 
-#define CONFIG_USB_HOST_ETHER
-#define CONFIG_USB_ETHER_ASIX
-#define CONFIG_USB_ETHER_SMSC95XX
-#define CONFIG_USB_ETHER_MCS7830
-#define CONFIG_USB_ETHER_RTL8152
-
-#define VIDEO_IO_OFFSET				0
-#define CONFIG_X86EMU_RAW_IO
-#define CONFIG_CMD_BMP
-#define CONFIG_BMP_16BPP
-
-/* Environment settings */
-#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
-#undef CONFIG_ENV_SIZE
-#define CONFIG_ENV_SIZE			0x2000
-#define CONFIG_ENV_SECT_SIZE		0x1000
-#define CONFIG_ENV_OFFSET		0x006ec000
-#define CONFIG_ENV_OFFSET_REDUND	\
-	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
+/*
+ * Include the theadorable-x86 common options, macros and default
+ * environment
+ */
+#include <configs/theadorable-x86-common.h>
 
 #endif	/* __CONFIG_H */
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 05/12] x86: conga-qeval20-qa3-e3845: Select CONFIG_BOARD_LATE_INIT
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
                   ` (2 preceding siblings ...)
  2017-07-17 14:03 ` [U-Boot] [PATCH 04/12] x86: theadorable-x86: Add header file for common defines and env Stefan Roese
@ 2017-07-17 14:03 ` Stefan Roese
  2017-07-18  1:14   ` Bin Meng
  2017-07-17 14:03 ` [U-Boot] [PATCH 06/12] x86: Add defconfig for theadorable-x86-conga with PCIe x4 blobs Stefan Roese
                   ` (7 subsequent siblings)
  11 siblings, 1 reply; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

This config option is needed on the congatec x86 BayTrail board, as
otherwise the USB hub will not get initialized correctly. This
patch selects this Kconfig option again.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 board/congatec/conga-qeval20-qa3-e3845/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/board/congatec/conga-qeval20-qa3-e3845/Kconfig b/board/congatec/conga-qeval20-qa3-e3845/Kconfig
index ac9ab90b8e..e7aaaf4c89 100644
--- a/board/congatec/conga-qeval20-qa3-e3845/Kconfig
+++ b/board/congatec/conga-qeval20-qa3-e3845/Kconfig
@@ -20,6 +20,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	select X86_RESET_VECTOR if !EFI_STUB
 	select INTEL_BAYTRAIL
 	select BOARD_ROMSIZE_KB_8192
+	select BOARD_LATE_INIT
 
 config PCIE_ECAM_BASE
 	default 0xe0000000
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 06/12] x86: Add defconfig for theadorable-x86-conga with PCIe x4 blobs
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
                   ` (3 preceding siblings ...)
  2017-07-17 14:03 ` [U-Boot] [PATCH 05/12] x86: conga-qeval20-qa3-e3845: Select CONFIG_BOARD_LATE_INIT Stefan Roese
@ 2017-07-17 14:03 ` Stefan Roese
  2017-07-18  1:14   ` Bin Meng
  2017-07-17 14:03 ` [U-Boot] [PATCH 07/12] x86: theadorable-x86-conga-qa3-e3845_defconfig: Misc defconfig updates Stefan Roese
                   ` (6 subsequent siblings)
  11 siblings, 1 reply; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

This defconfig uses the PCIe x4 binary blobs from the congatec BIOS.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 ...eadorable-x86-conga-qa3-e3845-pcie-x4_defconfig | 78 ++++++++++++++++++++++
 1 file changed, 78 insertions(+)
 create mode 100644 configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig

diff --git a/configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig b/configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig
new file mode 100644
index 0000000000..27cdec3985
--- /dev/null
+++ b/configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig
@@ -0,0 +1,78 @@
+CONFIG_X86=y
+CONFIG_VENDOR_CONGATEC=y
+CONFIG_TARGET_THEADORABLE_X86_CONGA_QA3_E3845=y
+CONFIG_DEFAULT_DEVICE_TREE="conga-qeval20-qa3-e3845"
+CONFIG_INTERNAL_UART=y
+CONFIG_HAVE_INTEL_ME=y
+CONFIG_FLASH_DESCRIPTOR_FILE="descriptor-pcie-x4.bin"
+CONFIG_ENABLE_MRC_CACHE=y
+CONFIG_SMP=y
+CONFIG_HAVE_VGA_BIOS=y
+CONFIG_VGA_BIOS_ADDR=0xfffa0000
+CONFIG_GENERATE_PIRQ_TABLE=y
+CONFIG_GENERATE_MP_TABLE=y
+CONFIG_GENERATE_ACPI_TABLE=y
+CONFIG_SEABIOS=y
+CONFIG_FIT=y
+CONFIG_FIT_SIGNATURE=y
+CONFIG_BOOTSTAGE=y
+CONFIG_BOOTSTAGE_REPORT=y
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_ARCH_MISC_INIT=y
+CONFIG_HUSH_PARSER=y
+CONFIG_CMD_CPU=y
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+CONFIG_CMD_MMC=y
+CONFIG_CMD_SF=y
+CONFIG_CMD_SPI=y
+CONFIG_CMD_I2C=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_GPIO=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_CMD_DHCP=y
+# CONFIG_CMD_NFS is not set
+CONFIG_CMD_PING=y
+CONFIG_CMD_TIME=y
+CONFIG_CMD_BOOTSTAGE=y
+CONFIG_CMD_EXT2=y
+CONFIG_CMD_EXT4=y
+CONFIG_CMD_EXT4_WRITE=y
+CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_OF_CONTROL=y
+CONFIG_REGMAP=y
+CONFIG_SYSCON=y
+CONFIG_CPU=y
+CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_INTEL=y
+CONFIG_WINBOND_W83627=y
+CONFIG_MMC=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_GIGADEVICE=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_SPANSION=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_DM_ETH=y
+CONFIG_E1000=y
+CONFIG_DM_PCI=y
+CONFIG_DM_RTC=y
+CONFIG_DEBUG_UART=y
+CONFIG_DEBUG_UART_BASE=0x3f8
+CONFIG_DEBUG_UART_CLOCK=1843200
+CONFIG_SYS_NS16550=y
+CONFIG_ICH_SPI=y
+CONFIG_TIMER=y
+CONFIG_USB=y
+CONFIG_DM_USB=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_KEYBOARD=y
+CONFIG_DM_VIDEO=y
+CONFIG_VIDEO_VESA=y
+CONFIG_FRAMEBUFFER_SET_VESA_MODE=y
+CONFIG_FRAMEBUFFER_VESA_MODE_114=y
+CONFIG_CONSOLE_SCROLL_LINES=5
+CONFIG_USE_PRIVATE_LIBGCC=y
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 07/12] x86: theadorable-x86-conga-qa3-e3845_defconfig: Misc defconfig updates
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
                   ` (4 preceding siblings ...)
  2017-07-17 14:03 ` [U-Boot] [PATCH 06/12] x86: Add defconfig for theadorable-x86-conga with PCIe x4 blobs Stefan Roese
@ 2017-07-17 14:03 ` Stefan Roese
  2017-07-18  1:15   ` Bin Meng
  2017-07-17 14:03 ` [U-Boot] [PATCH 08/12] x86: theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig: " Stefan Roese
                   ` (5 subsequent siblings)
  11 siblings, 1 reply; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

- Enable EFI partition support
- Enable CONFIG_MMC_PCI

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 configs/theadorable-x86-conga-qa3-e3845_defconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configs/theadorable-x86-conga-qa3-e3845_defconfig b/configs/theadorable-x86-conga-qa3-e3845_defconfig
index 5082dda0c1..ab30144d91 100644
--- a/configs/theadorable-x86-conga-qa3-e3845_defconfig
+++ b/configs/theadorable-x86-conga-qa3-e3845_defconfig
@@ -39,6 +39,8 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
+CONFIG_EFI_PARTITION=y
+# CONFIG_PARTITION_UUIDS is not set
 CONFIG_OF_CONTROL=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
@@ -47,6 +49,7 @@ CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
 CONFIG_WINBOND_W83627=y
 CONFIG_MMC=y
+CONFIG_MMC_PCI=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_SPI_FLASH=y
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 08/12] x86: theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig: Misc defconfig updates
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
                   ` (5 preceding siblings ...)
  2017-07-17 14:03 ` [U-Boot] [PATCH 07/12] x86: theadorable-x86-conga-qa3-e3845_defconfig: Misc defconfig updates Stefan Roese
@ 2017-07-17 14:03 ` Stefan Roese
  2017-07-18  1:15   ` Bin Meng
  2017-07-17 14:03 ` [U-Boot] [PATCH 09/12] x86: dfi-bt700: Add xHCI USB hub reset Stefan Roese
                   ` (4 subsequent siblings)
  11 siblings, 1 reply; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

- Enable EFI partition support
- Enable CONFIG_MMC_PCI

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig b/configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig
index 27cdec3985..649afbec6d 100644
--- a/configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig
+++ b/configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig
@@ -40,6 +40,8 @@ CONFIG_CMD_EXT4=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
+CONFIG_EFI_PARTITION=y
+# CONFIG_PARTITION_UUIDS is not set
 CONFIG_OF_CONTROL=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
@@ -48,6 +50,7 @@ CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
 CONFIG_WINBOND_W83627=y
 CONFIG_MMC=y
+CONFIG_MMC_PCI=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_SPI_FLASH=y
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 09/12] x86: dfi-bt700: Add xHCI USB hub reset
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
                   ` (6 preceding siblings ...)
  2017-07-17 14:03 ` [U-Boot] [PATCH 08/12] x86: theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig: " Stefan Roese
@ 2017-07-17 14:03 ` Stefan Roese
  2017-07-18  1:15   ` Bin Meng
  2017-07-17 14:03 ` [U-Boot] [PATCH 10/12] x86: dfi-bt700.dtsi: Enable xHCI and add GPIO for the xHCI HUB reset Stefan Roese
                   ` (3 subsequent siblings)
  11 siblings, 1 reply; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

The xHCI USB hub is connected to an GPIO on the DFI BayTrail SoM. For
correct operation, it needs to get reset upon power-up. Otherwise it
may happen that the hub is not detected after a software reboot.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 board/dfi/dfi-bt700/Kconfig     |  1 +
 board/dfi/dfi-bt700/dfi-bt700.c | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/board/dfi/dfi-bt700/Kconfig b/board/dfi/dfi-bt700/Kconfig
index 88c4ddeee9..58a0188f87 100644
--- a/board/dfi/dfi-bt700/Kconfig
+++ b/board/dfi/dfi-bt700/Kconfig
@@ -20,6 +20,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	select X86_RESET_VECTOR if !EFI_STUB
 	select INTEL_BAYTRAIL
 	select BOARD_ROMSIZE_KB_8192
+	select BOARD_LATE_INIT
 
 config PCIE_ECAM_BASE
 	default 0xe0000000
diff --git a/board/dfi/dfi-bt700/dfi-bt700.c b/board/dfi/dfi-bt700/dfi-bt700.c
index 8645bdc795..3dd2036d11 100644
--- a/board/dfi/dfi-bt700/dfi-bt700.c
+++ b/board/dfi/dfi-bt700/dfi-bt700.c
@@ -28,3 +28,30 @@ int board_early_init_f(void)
 
 	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;
+}
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 10/12] x86: dfi-bt700.dtsi: Enable xHCI and add GPIO for the xHCI HUB reset
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
                   ` (7 preceding siblings ...)
  2017-07-17 14:03 ` [U-Boot] [PATCH 09/12] x86: dfi-bt700: Add xHCI USB hub reset Stefan Roese
@ 2017-07-17 14:03 ` Stefan Roese
  2017-07-18  1:15   ` Bin Meng
  2017-07-17 14:03 ` [U-Boot] [PATCH 11/12] x86: conga-qeval20-qa3-e3845.dts: Enable xHCI support in dts Stefan Roese
                   ` (2 subsequent siblings)
  11 siblings, 1 reply; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

Change from EHCI to xHCI on the DFI BayTrail SoM. Additionally, the GPIO
that is needed to reset the xHCI hub is configured in the dts.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 arch/x86/dts/dfi-bt700.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/x86/dts/dfi-bt700.dtsi b/arch/x86/dts/dfi-bt700.dtsi
index 04aa95ad52..b62e00ff1f 100644
--- a/arch/x86/dts/dfi-bt700.dtsi
+++ b/arch/x86/dts/dfi-bt700.dtsi
@@ -47,6 +47,15 @@
 			pad-offset = <0x3a0>;
 			mode-func = <1>;
 		};
+
+		xhci_hub_reset: usb_ulpi_stp at 0 {
+			gpio-offset = <0xa0 10>;
+			pad-offset = <0x23b0>;
+			mode-func = <0>;
+			mode-gpio;
+			output-value = <1>;
+			direction = <PIN_OUTPUT>;
+		};
 	};
 
 	chosen {
@@ -261,6 +270,9 @@
 		fsp,enable-spi;
 		fsp,enable-sata;
 		fsp,sata-mode = <SATA_MODE_AHCI>;
+#ifdef CONFIG_USB_XHCI_HCD
+		fsp,enable-xhci;
+#endif
 		fsp,lpe-mode = <LPE_MODE_PCI>;
 		fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>;
 		fsp,enable-dma0;
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 11/12] x86: conga-qeval20-qa3-e3845.dts: Enable xHCI support in dts
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
                   ` (8 preceding siblings ...)
  2017-07-17 14:03 ` [U-Boot] [PATCH 10/12] x86: dfi-bt700.dtsi: Enable xHCI and add GPIO for the xHCI HUB reset Stefan Roese
@ 2017-07-17 14:03 ` Stefan Roese
  2017-07-18  1:15   ` Bin Meng
  2017-07-17 14:03 ` [U-Boot] [PATCH 12/12] x86: theadorable-x86-xxx_defconfig: Misc defconfig updates Stefan Roese
  2017-07-18  1:14 ` [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Bin Meng
  11 siblings, 1 reply; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 arch/x86/dts/conga-qeval20-qa3-e3845.dts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86/dts/conga-qeval20-qa3-e3845.dts b/arch/x86/dts/conga-qeval20-qa3-e3845.dts
index ae11ccc25a..9c068709ee 100644
--- a/arch/x86/dts/conga-qeval20-qa3-e3845.dts
+++ b/arch/x86/dts/conga-qeval20-qa3-e3845.dts
@@ -258,6 +258,9 @@
 		fsp,enable-spi;
 		fsp,enable-sata;
 		fsp,sata-mode = <SATA_MODE_AHCI>;
+#ifdef CONFIG_USB_XHCI_HCD
+		fsp,enable-xhci;
+#endif
 		fsp,lpe-mode = <LPE_MODE_PCI>;
 		fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>;
 		fsp,enable-dma0;
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 12/12] x86: theadorable-x86-xxx_defconfig: Misc defconfig updates
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
                   ` (9 preceding siblings ...)
  2017-07-17 14:03 ` [U-Boot] [PATCH 11/12] x86: conga-qeval20-qa3-e3845.dts: Enable xHCI support in dts Stefan Roese
@ 2017-07-17 14:03 ` Stefan Roese
  2017-07-18  1:15   ` Bin Meng
  2017-07-18  1:14 ` [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Bin Meng
  11 siblings, 1 reply; 25+ messages in thread
From: Stefan Roese @ 2017-07-17 14:03 UTC (permalink / raw)
  To: u-boot

This patch changes some Kconfig options for all theadorable-x86 targets:

- Enable ACPI S3 resume support
- Enable xHCI support

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
---
 configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig | 2 ++
 configs/theadorable-x86-conga-qa3-e3845_defconfig         | 4 +++-
 configs/theadorable-x86-dfi-bt700_defconfig               | 2 ++
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig b/configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig
index 649afbec6d..46f6360d75 100644
--- a/configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig
+++ b/configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig
@@ -12,6 +12,7 @@ CONFIG_VGA_BIOS_ADDR=0xfffa0000
 CONFIG_GENERATE_PIRQ_TABLE=y
 CONFIG_GENERATE_MP_TABLE=y
 CONFIG_GENERATE_ACPI_TABLE=y
+CONFIG_HAVE_ACPI_RESUME=y
 CONFIG_SEABIOS=y
 CONFIG_FIT=y
 CONFIG_FIT_SIGNATURE=y
@@ -71,6 +72,7 @@ CONFIG_ICH_SPI=y
 CONFIG_TIMER=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_DM_VIDEO=y
diff --git a/configs/theadorable-x86-conga-qa3-e3845_defconfig b/configs/theadorable-x86-conga-qa3-e3845_defconfig
index ab30144d91..e531951b97 100644
--- a/configs/theadorable-x86-conga-qa3-e3845_defconfig
+++ b/configs/theadorable-x86-conga-qa3-e3845_defconfig
@@ -3,6 +3,7 @@ CONFIG_VENDOR_CONGATEC=y
 CONFIG_TARGET_THEADORABLE_X86_CONGA_QA3_E3845=y
 CONFIG_DEFAULT_DEVICE_TREE="conga-qeval20-qa3-e3845"
 CONFIG_INTERNAL_UART=y
+CONFIG_DEBUG_UART=y
 CONFIG_HAVE_INTEL_ME=y
 CONFIG_ENABLE_MRC_CACHE=y
 CONFIG_SMP=y
@@ -11,6 +12,7 @@ CONFIG_VGA_BIOS_ADDR=0xfffa0000
 CONFIG_GENERATE_PIRQ_TABLE=y
 CONFIG_GENERATE_MP_TABLE=y
 CONFIG_GENERATE_ACPI_TABLE=y
+CONFIG_HAVE_ACPI_RESUME=y
 CONFIG_SEABIOS=y
 CONFIG_FIT=y
 CONFIG_FIT_SIGNATURE=y
@@ -62,7 +64,6 @@ CONFIG_DM_ETH=y
 CONFIG_E1000=y
 CONFIG_DM_PCI=y
 CONFIG_DM_RTC=y
-CONFIG_DEBUG_UART=y
 CONFIG_DEBUG_UART_BASE=0x3f8
 CONFIG_DEBUG_UART_CLOCK=1843200
 CONFIG_SYS_NS16550=y
@@ -70,6 +71,7 @@ CONFIG_ICH_SPI=y
 CONFIG_TIMER=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_DM_VIDEO=y
diff --git a/configs/theadorable-x86-dfi-bt700_defconfig b/configs/theadorable-x86-dfi-bt700_defconfig
index e00e3801bc..5660d6ef19 100644
--- a/configs/theadorable-x86-dfi-bt700_defconfig
+++ b/configs/theadorable-x86-dfi-bt700_defconfig
@@ -10,6 +10,7 @@ CONFIG_VGA_BIOS_ADDR=0xfffa0000
 CONFIG_GENERATE_PIRQ_TABLE=y
 CONFIG_GENERATE_MP_TABLE=y
 CONFIG_GENERATE_ACPI_TABLE=y
+CONFIG_HAVE_ACPI_RESUME=y
 CONFIG_SEABIOS=y
 CONFIG_FIT=y
 CONFIG_FIT_SIGNATURE=y
@@ -66,6 +67,7 @@ CONFIG_ICH_SPI=y
 CONFIG_TIMER=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_DM_VIDEO=y
-- 
2.13.3

^ permalink raw reply related	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob
  2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
                   ` (10 preceding siblings ...)
  2017-07-17 14:03 ` [U-Boot] [PATCH 12/12] x86: theadorable-x86-xxx_defconfig: Misc defconfig updates Stefan Roese
@ 2017-07-18  1:14 ` Bin Meng
  2017-07-18  1:21   ` Bin Meng
  11 siblings, 1 reply; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:14 UTC (permalink / raw)
  To: u-boot

Hi Stefan,

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> To support the Micron SPI NOR flashes, this patch enables the support in
> defconfig. This increases the U-Boot binary too much so that it does
> not fit into its area in the ROM. So also move the VIDEO BIOS blob
> a bit to make some space here.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  configs/theadorable-x86-dfi-bt700_defconfig | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/configs/theadorable-x86-dfi-bt700_defconfig b/configs/theadorable-x86-dfi-bt700_defconfig
> index 1703cee841..30a40e3b16 100644
> --- a/configs/theadorable-x86-dfi-bt700_defconfig
> +++ b/configs/theadorable-x86-dfi-bt700_defconfig
> @@ -6,6 +6,7 @@ CONFIG_HAVE_INTEL_ME=y
>  CONFIG_ENABLE_MRC_CACHE=y
>  CONFIG_SMP=y
>  CONFIG_HAVE_VGA_BIOS=y
> +CONFIG_VGA_BIOS_ADDR=0xfffa0000
>  CONFIG_GENERATE_PIRQ_TABLE=y
>  CONFIG_GENERATE_MP_TABLE=y
>  CONFIG_GENERATE_ACPI_TABLE=y
> @@ -53,6 +54,7 @@ CONFIG_MMC_SDHCI_SDMA=y
>  CONFIG_SPI_FLASH=y
>  CONFIG_SPI_FLASH_GIGADEVICE=y
>  CONFIG_SPI_FLASH_MACRONIX=y
> +CONFIG_SPI_FLASH_SPANSION=y

Commit message says Micron, but here is Spansion. This is confusing.

>  CONFIG_SPI_FLASH_STMICRO=y
>  CONFIG_SPI_FLASH_WINBOND=y
>  CONFIG_DM_ETH=y
> --

Regards,
Bin

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 02/12] x86: dfi: Add option to select different config headers for baseboards
  2017-07-17 14:03 ` [U-Boot] [PATCH 02/12] x86: dfi: Add option to select different config headers for baseboards Stefan Roese
@ 2017-07-18  1:14   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:14 UTC (permalink / raw)
  To: u-boot

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> This patch adds the infrastructure to define different config headers
> with different configurations and default environment for the baseboards
> that can now be selected via Kconfig. The new configuration for the
> theadorable-x86-dfi-bt700 is also added.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  board/dfi/Kconfig                           | 17 ++++++--
>  board/dfi/dfi-bt700/Kconfig                 |  7 +---
>  board/dfi/dfi-bt700/MAINTAINERS             |  1 +
>  configs/dfi-bt700-q7x-151_defconfig         |  2 +-
>  configs/theadorable-x86-dfi-bt700_defconfig |  2 +-
>  include/configs/theadorable-x86-dfi-bt700.h | 60 +++++++++++++++++++++++++++++
>  6 files changed, 79 insertions(+), 10 deletions(-)
>  create mode 100644 include/configs/theadorable-x86-dfi-bt700.h
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 03/12] x86: conga: Add option to select different config headers for baseboards
  2017-07-17 14:03 ` [U-Boot] [PATCH 03/12] x86: conga: " Stefan Roese
@ 2017-07-18  1:14   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:14 UTC (permalink / raw)
  To: u-boot

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> This patch adds the infrastructure to define different config headers
> with different configurations and default environment for the baseboards
> that can now be selected via Kconfig. The new configuration for the
> theadorable-x86-conga-qa3-e3845 is also added. Also the new defconfig
> file for this new target is added.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  board/congatec/Kconfig                             | 11 ++++
>  board/congatec/conga-qeval20-qa3-e3845/Kconfig     |  7 +-
>  board/congatec/conga-qeval20-qa3-e3845/MAINTAINERS |  2 +
>  configs/theadorable-x86-conga-qa3-e3845_defconfig  | 77 ++++++++++++++++++++++
>  include/configs/theadorable-x86-conga-qa3-e3845.h  | 54 +++++++++++++++
>  5 files changed, 146 insertions(+), 5 deletions(-)
>  create mode 100644 configs/theadorable-x86-conga-qa3-e3845_defconfig
>  create mode 100644 include/configs/theadorable-x86-conga-qa3-e3845.h
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 04/12] x86: theadorable-x86: Add header file for common defines and env
  2017-07-17 14:03 ` [U-Boot] [PATCH 04/12] x86: theadorable-x86: Add header file for common defines and env Stefan Roese
@ 2017-07-18  1:14   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:14 UTC (permalink / raw)
  To: u-boot

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> This patch adds the common header include file theadorable-x86-common.h
> for the theadorable-x86 targets to define all common options and the
> default environment.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  include/configs/theadorable-x86-common.h          | 162 ++++++++++++++++++++++
>  include/configs/theadorable-x86-conga-qa3-e3845.h |  48 ++-----
>  include/configs/theadorable-x86-dfi-bt700.h       |  51 ++-----
>  3 files changed, 186 insertions(+), 75 deletions(-)
>  create mode 100644 include/configs/theadorable-x86-common.h
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 05/12] x86: conga-qeval20-qa3-e3845: Select CONFIG_BOARD_LATE_INIT
  2017-07-17 14:03 ` [U-Boot] [PATCH 05/12] x86: conga-qeval20-qa3-e3845: Select CONFIG_BOARD_LATE_INIT Stefan Roese
@ 2017-07-18  1:14   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:14 UTC (permalink / raw)
  To: u-boot

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> This config option is needed on the congatec x86 BayTrail board, as
> otherwise the USB hub will not get initialized correctly. This
> patch selects this Kconfig option again.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  board/congatec/conga-qeval20-qa3-e3845/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 06/12] x86: Add defconfig for theadorable-x86-conga with PCIe x4 blobs
  2017-07-17 14:03 ` [U-Boot] [PATCH 06/12] x86: Add defconfig for theadorable-x86-conga with PCIe x4 blobs Stefan Roese
@ 2017-07-18  1:14   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:14 UTC (permalink / raw)
  To: u-boot

Hi Stefan,

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> This defconfig uses the PCIe x4 binary blobs from the congatec BIOS.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  ...eadorable-x86-conga-qa3-e3845-pcie-x4_defconfig | 78 ++++++++++++++++++++++
>  1 file changed, 78 insertions(+)
>  create mode 100644 configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig
>

Please add the maintainer entry for this defconfig.

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Regards,
Bin

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 07/12] x86: theadorable-x86-conga-qa3-e3845_defconfig: Misc defconfig updates
  2017-07-17 14:03 ` [U-Boot] [PATCH 07/12] x86: theadorable-x86-conga-qa3-e3845_defconfig: Misc defconfig updates Stefan Roese
@ 2017-07-18  1:15   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:15 UTC (permalink / raw)
  To: u-boot

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> - Enable EFI partition support
> - Enable CONFIG_MMC_PCI
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  configs/theadorable-x86-conga-qa3-e3845_defconfig | 3 +++
>  1 file changed, 3 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 08/12] x86: theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig: Misc defconfig updates
  2017-07-17 14:03 ` [U-Boot] [PATCH 08/12] x86: theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig: " Stefan Roese
@ 2017-07-18  1:15   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:15 UTC (permalink / raw)
  To: u-boot

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> - Enable EFI partition support
> - Enable CONFIG_MMC_PCI
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig | 3 +++
>  1 file changed, 3 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 09/12] x86: dfi-bt700: Add xHCI USB hub reset
  2017-07-17 14:03 ` [U-Boot] [PATCH 09/12] x86: dfi-bt700: Add xHCI USB hub reset Stefan Roese
@ 2017-07-18  1:15   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:15 UTC (permalink / raw)
  To: u-boot

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> The xHCI USB hub is connected to an GPIO on the DFI BayTrail SoM. For
> correct operation, it needs to get reset upon power-up. Otherwise it
> may happen that the hub is not detected after a software reboot.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  board/dfi/dfi-bt700/Kconfig     |  1 +
>  board/dfi/dfi-bt700/dfi-bt700.c | 27 +++++++++++++++++++++++++++
>  2 files changed, 28 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 10/12] x86: dfi-bt700.dtsi: Enable xHCI and add GPIO for the xHCI HUB reset
  2017-07-17 14:03 ` [U-Boot] [PATCH 10/12] x86: dfi-bt700.dtsi: Enable xHCI and add GPIO for the xHCI HUB reset Stefan Roese
@ 2017-07-18  1:15   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:15 UTC (permalink / raw)
  To: u-boot

Hi Stefan,

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> Change from EHCI to xHCI on the DFI BayTrail SoM. Additionally, the GPIO
> that is needed to reset the xHCI hub is configured in the dts.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  arch/x86/dts/dfi-bt700.dtsi | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

But this commit should be squashed into previous one to make it a
complete one (support xHCI hub reset in dfi-bt700 boards).

> diff --git a/arch/x86/dts/dfi-bt700.dtsi b/arch/x86/dts/dfi-bt700.dtsi
> index 04aa95ad52..b62e00ff1f 100644
> --- a/arch/x86/dts/dfi-bt700.dtsi
> +++ b/arch/x86/dts/dfi-bt700.dtsi
> @@ -47,6 +47,15 @@
>                         pad-offset = <0x3a0>;
>                         mode-func = <1>;
>                 };
> +
> +               xhci_hub_reset: usb_ulpi_stp at 0 {
> +                       gpio-offset = <0xa0 10>;
> +                       pad-offset = <0x23b0>;
> +                       mode-func = <0>;
> +                       mode-gpio;
> +                       output-value = <1>;
> +                       direction = <PIN_OUTPUT>;
> +               };
>         };
>
>         chosen {
> @@ -261,6 +270,9 @@
>                 fsp,enable-spi;
>                 fsp,enable-sata;
>                 fsp,sata-mode = <SATA_MODE_AHCI>;
> +#ifdef CONFIG_USB_XHCI_HCD
> +               fsp,enable-xhci;
> +#endif
>                 fsp,lpe-mode = <LPE_MODE_PCI>;
>                 fsp,lpss-sio-mode = <LPSS_SIO_MODE_PCI>;
>                 fsp,enable-dma0;
> --

Regards,
Bin

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 11/12] x86: conga-qeval20-qa3-e3845.dts: Enable xHCI support in dts
  2017-07-17 14:03 ` [U-Boot] [PATCH 11/12] x86: conga-qeval20-qa3-e3845.dts: Enable xHCI support in dts Stefan Roese
@ 2017-07-18  1:15   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:15 UTC (permalink / raw)
  To: u-boot

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  arch/x86/dts/conga-qeval20-qa3-e3845.dts | 3 +++
>  1 file changed, 3 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 12/12] x86: theadorable-x86-xxx_defconfig: Misc defconfig updates
  2017-07-17 14:03 ` [U-Boot] [PATCH 12/12] x86: theadorable-x86-xxx_defconfig: Misc defconfig updates Stefan Roese
@ 2017-07-18  1:15   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:15 UTC (permalink / raw)
  To: u-boot

On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
> This patch changes some Kconfig options for all theadorable-x86 targets:
>
> - Enable ACPI S3 resume support
> - Enable xHCI support
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
>  configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig | 2 ++
>  configs/theadorable-x86-conga-qa3-e3845_defconfig         | 4 +++-
>  configs/theadorable-x86-dfi-bt700_defconfig               | 2 ++
>  3 files changed, 7 insertions(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 25+ messages in thread

* [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob
  2017-07-18  1:14 ` [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Bin Meng
@ 2017-07-18  1:21   ` Bin Meng
  0 siblings, 0 replies; 25+ messages in thread
From: Bin Meng @ 2017-07-18  1:21 UTC (permalink / raw)
  To: u-boot

On Tue, Jul 18, 2017 at 9:14 AM, Bin Meng <bmeng.cn@gmail.com> wrote:
> Hi Stefan,
>
> On Mon, Jul 17, 2017 at 10:03 PM, Stefan Roese <sr@denx.de> wrote:
>> To support the Micron SPI NOR flashes, this patch enables the support in
>> defconfig. This increases the U-Boot binary too much so that it does
>> not fit into its area in the ROM. So also move the VIDEO BIOS blob
>> a bit to make some space here.
>>
>> Signed-off-by: Stefan Roese <sr@denx.de>
>> Cc: Simon Glass <sjg@chromium.org>
>> Cc: Bin Meng <bmeng.cn@gmail.com>
>> ---
>>  configs/theadorable-x86-dfi-bt700_defconfig | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/configs/theadorable-x86-dfi-bt700_defconfig b/configs/theadorable-x86-dfi-bt700_defconfig
>> index 1703cee841..30a40e3b16 100644
>> --- a/configs/theadorable-x86-dfi-bt700_defconfig
>> +++ b/configs/theadorable-x86-dfi-bt700_defconfig
>> @@ -6,6 +6,7 @@ CONFIG_HAVE_INTEL_ME=y
>>  CONFIG_ENABLE_MRC_CACHE=y
>>  CONFIG_SMP=y
>>  CONFIG_HAVE_VGA_BIOS=y
>> +CONFIG_VGA_BIOS_ADDR=0xfffa0000
>>  CONFIG_GENERATE_PIRQ_TABLE=y
>>  CONFIG_GENERATE_MP_TABLE=y
>>  CONFIG_GENERATE_ACPI_TABLE=y
>> @@ -53,6 +54,7 @@ CONFIG_MMC_SDHCI_SDMA=y
>>  CONFIG_SPI_FLASH=y
>>  CONFIG_SPI_FLASH_GIGADEVICE=y
>>  CONFIG_SPI_FLASH_MACRONIX=y
>> +CONFIG_SPI_FLASH_SPANSION=y
>
> Commit message says Micron, but here is Spansion. This is confusing.
>
>>  CONFIG_SPI_FLASH_STMICRO=y
>>  CONFIG_SPI_FLASH_WINBOND=y
>>  CONFIG_DM_ETH=y
>> --

Other than the confusing commit message,

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2017-07-18  1:21 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-17 14:03 [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Stefan Roese
2017-07-17 14:03 ` [U-Boot] [PATCH 02/12] x86: dfi: Add option to select different config headers for baseboards Stefan Roese
2017-07-18  1:14   ` Bin Meng
2017-07-17 14:03 ` [U-Boot] [PATCH 03/12] x86: conga: " Stefan Roese
2017-07-18  1:14   ` Bin Meng
2017-07-17 14:03 ` [U-Boot] [PATCH 04/12] x86: theadorable-x86: Add header file for common defines and env Stefan Roese
2017-07-18  1:14   ` Bin Meng
2017-07-17 14:03 ` [U-Boot] [PATCH 05/12] x86: conga-qeval20-qa3-e3845: Select CONFIG_BOARD_LATE_INIT Stefan Roese
2017-07-18  1:14   ` Bin Meng
2017-07-17 14:03 ` [U-Boot] [PATCH 06/12] x86: Add defconfig for theadorable-x86-conga with PCIe x4 blobs Stefan Roese
2017-07-18  1:14   ` Bin Meng
2017-07-17 14:03 ` [U-Boot] [PATCH 07/12] x86: theadorable-x86-conga-qa3-e3845_defconfig: Misc defconfig updates Stefan Roese
2017-07-18  1:15   ` Bin Meng
2017-07-17 14:03 ` [U-Boot] [PATCH 08/12] x86: theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig: " Stefan Roese
2017-07-18  1:15   ` Bin Meng
2017-07-17 14:03 ` [U-Boot] [PATCH 09/12] x86: dfi-bt700: Add xHCI USB hub reset Stefan Roese
2017-07-18  1:15   ` Bin Meng
2017-07-17 14:03 ` [U-Boot] [PATCH 10/12] x86: dfi-bt700.dtsi: Enable xHCI and add GPIO for the xHCI HUB reset Stefan Roese
2017-07-18  1:15   ` Bin Meng
2017-07-17 14:03 ` [U-Boot] [PATCH 11/12] x86: conga-qeval20-qa3-e3845.dts: Enable xHCI support in dts Stefan Roese
2017-07-18  1:15   ` Bin Meng
2017-07-17 14:03 ` [U-Boot] [PATCH 12/12] x86: theadorable-x86-xxx_defconfig: Misc defconfig updates Stefan Roese
2017-07-18  1:15   ` Bin Meng
2017-07-18  1:14 ` [U-Boot] [PATCH 01/12] x86: theadorable-x86-dfi-bt700: Add Micron SPI support and move VIDEO blob Bin Meng
2017-07-18  1:21   ` Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.