All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code
@ 2019-09-25 14:00 Simon Glass
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 01/10] x86: Rename existing FSP code to fsp1 Simon Glass
                   ` (9 more replies)
  0 siblings, 10 replies; 26+ messages in thread
From: Simon Glass @ 2019-09-25 14:00 UTC (permalink / raw)
  To: u-boot

At present the x86 FSP (Firmware Support Package) code assumes that FSP
version 1 is used. Since this code was added to U-Boot a new version
(FSP2) has been produced by Intel.

In preparation for adding support for FSP2, move the existing code into
a directory that indicates it is used for FSP1.

Changes in v3:
- Drop struct efi_guid and add a comment about forward declarations

Changes in v2:
- Correct Intel FSP web link
- Rewrite to make azalia a common file for FSP1 and FSP2

Simon Glass (10):
  x86: Rename existing FSP code to fsp1
  x86: Move fsp_azalia.h to the generic fsp directory
  x86: Create a new fsp_arch.h header
  x86: Move fsp_api.h inclusion out of fsp_support.h
  x86: Move fsp_types.h to the generic fsp directory
  x86: Move fsp_fv.h to the generic fsp directory
  x86: Move fsp_hob.h to the generic fsp directory
  x86: Move fsp_infoheader.h to the generic fsp directory
  x86: Move fsp_bootmode.h to the generic fsp directory
  x86: Move fsp_ffs.h include to fsp_arch.h

 arch/x86/Kconfig                              | 25 ++++++++++++++++++-
 arch/x86/cpu/baytrail/acpi.c                  |  2 +-
 arch/x86/cpu/baytrail/fsp_configs.c           |  2 +-
 arch/x86/cpu/braswell/fsp_configs.c           |  2 +-
 arch/x86/cpu/ivybridge/fsp_configs.c          |  2 +-
 arch/x86/cpu/queensbay/fsp_configs.c          |  2 +-
 arch/x86/cpu/queensbay/tnc.c                  |  2 +-
 arch/x86/include/asm/{fsp => fsp1}/fsp_api.h  |  0
 arch/x86/include/asm/{fsp => fsp1}/fsp_ffs.h  |  0
 .../include/asm/{fsp => fsp1}/fsp_support.h   | 19 +++++++-------
 arch/x86/include/asm/fsp_arch.h               | 22 ++++++++++++++++
 arch/x86/include/asm/u-boot-x86.h             |  2 +-
 arch/x86/lib/Makefile                         |  3 ++-
 arch/x86/lib/{fsp => fsp1}/Makefile           |  0
 arch/x86/lib/{fsp => fsp1}/fsp_car.S          |  0
 arch/x86/lib/{fsp => fsp1}/fsp_common.c       |  2 +-
 arch/x86/lib/{fsp => fsp1}/fsp_dram.c         |  2 +-
 arch/x86/lib/{fsp => fsp1}/fsp_graphics.c     |  2 +-
 arch/x86/lib/{fsp => fsp1}/fsp_support.c      |  2 +-
 .../som-db5800-som-6867/som-db5800-som-6867.c |  2 +-
 board/intel/cherryhill/cherryhill.c           |  2 +-
 cmd/x86/fsp.c                                 |  2 +-
 drivers/pci/pci-uclass.c                      |  2 +-
 23 files changed, 73 insertions(+), 26 deletions(-)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_api.h (100%)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_ffs.h (100%)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_support.h (94%)
 create mode 100644 arch/x86/include/asm/fsp_arch.h
 rename arch/x86/lib/{fsp => fsp1}/Makefile (100%)
 rename arch/x86/lib/{fsp => fsp1}/fsp_car.S (100%)
 rename arch/x86/lib/{fsp => fsp1}/fsp_common.c (99%)
 rename arch/x86/lib/{fsp => fsp1}/fsp_dram.c (98%)
 rename arch/x86/lib/{fsp => fsp1}/fsp_graphics.c (98%)
 rename arch/x86/lib/{fsp => fsp1}/fsp_support.c (99%)

-- 
2.23.0.444.g18eeb5a265-goog

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

* [U-Boot] [PATCH v3 01/10] x86: Rename existing FSP code to fsp1
  2019-09-25 14:00 [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code Simon Glass
@ 2019-09-25 14:00 ` Simon Glass
  2019-10-02 10:59   ` Bin Meng
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 02/10] x86: Move fsp_azalia.h to the generic fsp directory Simon Glass
                   ` (8 subsequent siblings)
  9 siblings, 1 reply; 26+ messages in thread
From: Simon Glass @ 2019-09-25 14:00 UTC (permalink / raw)
  To: u-boot

Since there is now a new version of the FSP and it is incompatible with
the existing version, move the code into an fsp1 directory. This will
allow us to put FSP v2 code into an fsp2 directory.

Add a Kconfig which defines which version is in use.

Some of the code in this new fsp1/ directory is generic across both FSPv1
and FSPv2. Future patches will address this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v3: None
Changes in v2:
- Correct Intel FSP web link

 arch/x86/Kconfig                              | 25 ++++++++++++++++++-
 arch/x86/cpu/baytrail/acpi.c                  |  2 +-
 arch/x86/cpu/baytrail/fsp_configs.c           |  2 +-
 arch/x86/cpu/braswell/fsp_configs.c           |  2 +-
 arch/x86/cpu/ivybridge/fsp_configs.c          |  2 +-
 arch/x86/cpu/queensbay/fsp_configs.c          |  2 +-
 arch/x86/cpu/queensbay/tnc.c                  |  2 +-
 arch/x86/include/asm/{fsp => fsp1}/fsp_api.h  |  0
 .../include/asm/{fsp => fsp1}/fsp_azalia.h    |  0
 .../include/asm/{fsp => fsp1}/fsp_bootmode.h  |  0
 arch/x86/include/asm/{fsp => fsp1}/fsp_ffs.h  |  0
 arch/x86/include/asm/{fsp => fsp1}/fsp_fv.h   |  0
 arch/x86/include/asm/{fsp => fsp1}/fsp_hob.h  |  0
 .../asm/{fsp => fsp1}/fsp_infoheader.h        |  0
 .../include/asm/{fsp => fsp1}/fsp_support.h   |  0
 .../x86/include/asm/{fsp => fsp1}/fsp_types.h |  0
 arch/x86/include/asm/u-boot-x86.h             |  2 +-
 arch/x86/lib/Makefile                         |  3 ++-
 arch/x86/lib/{fsp => fsp1}/Makefile           |  0
 arch/x86/lib/{fsp => fsp1}/fsp_car.S          |  0
 arch/x86/lib/{fsp => fsp1}/fsp_common.c       |  2 +-
 arch/x86/lib/{fsp => fsp1}/fsp_dram.c         |  2 +-
 arch/x86/lib/{fsp => fsp1}/fsp_graphics.c     |  2 +-
 arch/x86/lib/{fsp => fsp1}/fsp_support.c      |  2 +-
 .../som-db5800-som-6867/som-db5800-som-6867.c |  2 +-
 board/intel/cherryhill/cherryhill.c           |  2 +-
 cmd/x86/fsp.c                                 |  2 +-
 drivers/pci/pci-uclass.c                      |  2 +-
 28 files changed, 41 insertions(+), 17 deletions(-)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_api.h (100%)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_azalia.h (100%)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_bootmode.h (100%)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_ffs.h (100%)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_fv.h (100%)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_hob.h (100%)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_infoheader.h (100%)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_support.h (100%)
 rename arch/x86/include/asm/{fsp => fsp1}/fsp_types.h (100%)
 rename arch/x86/lib/{fsp => fsp1}/Makefile (100%)
 rename arch/x86/lib/{fsp => fsp1}/fsp_car.S (100%)
 rename arch/x86/lib/{fsp => fsp1}/fsp_common.c (99%)
 rename arch/x86/lib/{fsp => fsp1}/fsp_dram.c (98%)
 rename arch/x86/lib/{fsp => fsp1}/fsp_graphics.c (98%)
 rename arch/x86/lib/{fsp => fsp1}/fsp_support.c (99%)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 218e817cf3f..314f8def7a4 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -364,6 +364,29 @@ config HAVE_FSP
 	  Note: Without this binary U-Boot will not be able to set up its
 	  SDRAM so will not boot.
 
+choice
+	prompt "FSP version"
+	depends on HAVE_FSP
+	default FSP_VERSION1
+	help
+	  Selects the FSP version to use. Intel has published several versions
+	  of the FSP External Architecture Specification and this allows
+	  selection of the version number used by a particular SoC.
+
+config FSP_VERSION1
+	bool "FSP version 1.x"
+	help
+	  This covers versions 1.0 and 1.1a. See here for details:
+	  https://github.com/IntelFsp/fsp/wiki
+
+config FSP_VERSION2
+	bool "FSP version 2.x"
+	help
+	  This covers versions 2.0 and 2.1. See here for details:
+	  https://github.com/IntelFsp/fsp/wiki
+
+endchoice
+
 config FSP_FILE
 	string "Firmware Support Package binary filename"
 	depends on HAVE_FSP
@@ -429,7 +452,7 @@ config ENABLE_MRC_CACHE
 
 	  For platforms that use Intel FSP for the memory initialization,
 	  please check FSP output HOB via U-Boot command 'fsp hob' to see
-	  if there is FSP_NON_VOLATILE_STORAGE_HOB_GUID (asm/fsp/fsp_hob.h).
+	  if there is FSP_NON_VOLATILE_STORAGE_HOB_GUID (asm/fsp1/fsp_hob.h).
 	  If such GUID does not exist, MRC cache is not available on such
 	  platform (eg: Intel Queensbay), which means selecting this option
 	  here does not make any difference.
diff --git a/arch/x86/cpu/baytrail/acpi.c b/arch/x86/cpu/baytrail/acpi.c
index 445e4ba2d7f..1e3829a433c 100644
--- a/arch/x86/cpu/baytrail/acpi.c
+++ b/arch/x86/cpu/baytrail/acpi.c
@@ -167,7 +167,7 @@ void acpi_create_gnvs(struct acpi_global_nvs *gnvs)
  * and PMC_BASE_ADDRESS are accessed, so we need make sure the base addresses
  * of these two blocks are programmed by either U-Boot or FSP.
  *
- * It has been verified that 1st phase API (see arch/x86/lib/fsp/fsp_car.S)
+ * It has been verified that 1st phase API (see arch/x86/lib/fsp1/fsp_car.S)
  * on Intel BayTrail SoC already initializes these two base addresses so
  * we are safe to access these registers here.
  */
diff --git a/arch/x86/cpu/baytrail/fsp_configs.c b/arch/x86/cpu/baytrail/fsp_configs.c
index cefd26299a4..5b5d66aa5e9 100644
--- a/arch/x86/cpu/baytrail/fsp_configs.c
+++ b/arch/x86/cpu/baytrail/fsp_configs.c
@@ -7,7 +7,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/braswell/fsp_configs.c b/arch/x86/cpu/braswell/fsp_configs.c
index 7fe6fa7995a..607e333f21c 100644
--- a/arch/x86/cpu/braswell/fsp_configs.c
+++ b/arch/x86/cpu/braswell/fsp_configs.c
@@ -5,7 +5,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/ivybridge/fsp_configs.c b/arch/x86/cpu/ivybridge/fsp_configs.c
index 2fd06b3bed7..773c2b2a0ae 100644
--- a/arch/x86/cpu/ivybridge/fsp_configs.c
+++ b/arch/x86/cpu/ivybridge/fsp_configs.c
@@ -5,7 +5,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/cpu/queensbay/fsp_configs.c b/arch/x86/cpu/queensbay/fsp_configs.c
index c4d117783cb..0dd1901e07b 100644
--- a/arch/x86/cpu/queensbay/fsp_configs.c
+++ b/arch/x86/cpu/queensbay/fsp_configs.c
@@ -5,7 +5,7 @@
  */
 
 #include <common.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 
 void update_fsp_configs(struct fsp_config_data *config,
 			struct fspinit_rtbuf *rt_buf)
diff --git a/arch/x86/cpu/queensbay/tnc.c b/arch/x86/cpu/queensbay/tnc.c
index 76556fc7f79..66737e655bb 100644
--- a/arch/x86/cpu/queensbay/tnc.c
+++ b/arch/x86/cpu/queensbay/tnc.c
@@ -12,7 +12,7 @@
 #include <asm/post.h>
 #include <asm/arch/device.h>
 #include <asm/arch/tnc.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 #include <asm/processor.h>
 
 static int __maybe_unused disable_igd(void)
diff --git a/arch/x86/include/asm/fsp/fsp_api.h b/arch/x86/include/asm/fsp1/fsp_api.h
similarity index 100%
rename from arch/x86/include/asm/fsp/fsp_api.h
rename to arch/x86/include/asm/fsp1/fsp_api.h
diff --git a/arch/x86/include/asm/fsp/fsp_azalia.h b/arch/x86/include/asm/fsp1/fsp_azalia.h
similarity index 100%
rename from arch/x86/include/asm/fsp/fsp_azalia.h
rename to arch/x86/include/asm/fsp1/fsp_azalia.h
diff --git a/arch/x86/include/asm/fsp/fsp_bootmode.h b/arch/x86/include/asm/fsp1/fsp_bootmode.h
similarity index 100%
rename from arch/x86/include/asm/fsp/fsp_bootmode.h
rename to arch/x86/include/asm/fsp1/fsp_bootmode.h
diff --git a/arch/x86/include/asm/fsp/fsp_ffs.h b/arch/x86/include/asm/fsp1/fsp_ffs.h
similarity index 100%
rename from arch/x86/include/asm/fsp/fsp_ffs.h
rename to arch/x86/include/asm/fsp1/fsp_ffs.h
diff --git a/arch/x86/include/asm/fsp/fsp_fv.h b/arch/x86/include/asm/fsp1/fsp_fv.h
similarity index 100%
rename from arch/x86/include/asm/fsp/fsp_fv.h
rename to arch/x86/include/asm/fsp1/fsp_fv.h
diff --git a/arch/x86/include/asm/fsp/fsp_hob.h b/arch/x86/include/asm/fsp1/fsp_hob.h
similarity index 100%
rename from arch/x86/include/asm/fsp/fsp_hob.h
rename to arch/x86/include/asm/fsp1/fsp_hob.h
diff --git a/arch/x86/include/asm/fsp/fsp_infoheader.h b/arch/x86/include/asm/fsp1/fsp_infoheader.h
similarity index 100%
rename from arch/x86/include/asm/fsp/fsp_infoheader.h
rename to arch/x86/include/asm/fsp1/fsp_infoheader.h
diff --git a/arch/x86/include/asm/fsp/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
similarity index 100%
rename from arch/x86/include/asm/fsp/fsp_support.h
rename to arch/x86/include/asm/fsp1/fsp_support.h
diff --git a/arch/x86/include/asm/fsp/fsp_types.h b/arch/x86/include/asm/fsp1/fsp_types.h
similarity index 100%
rename from arch/x86/include/asm/fsp/fsp_types.h
rename to arch/x86/include/asm/fsp1/fsp_types.h
diff --git a/arch/x86/include/asm/u-boot-x86.h b/arch/x86/include/asm/u-boot-x86.h
index c252192bf41..2466ad2ad30 100644
--- a/arch/x86/include/asm/u-boot-x86.h
+++ b/arch/x86/include/asm/u-boot-x86.h
@@ -74,7 +74,7 @@ u32 isa_map_rom(u32 bus_addr, int size);
 /* arch/x86/lib/... */
 int video_bios_init(void);
 
-/* arch/x86/lib/fsp/... */
+/* arch/x86/lib/fsp1,2/... */
 
 /**
  * fsp_save_s3_stack() - save stack address to CMOS for next S3 boot
diff --git a/arch/x86/lib/Makefile b/arch/x86/lib/Makefile
index 906be5eab98..a8c7448ee45 100644
--- a/arch/x86/lib/Makefile
+++ b/arch/x86/lib/Makefile
@@ -43,7 +43,8 @@ ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_CMD_ZBOOT)	+= zimage.o
 endif
 obj-$(CONFIG_USE_HOB) += hob.o
-obj-$(CONFIG_HAVE_FSP) += fsp/
+obj-$(CONFIG_FSP_VERSION1) += fsp1/
+obj-$(CONFIG_FSP_VERSION2) += fsp2/
 
 ifdef CONFIG_SPL_BUILD
 ifdef CONFIG_TPL_BUILD
diff --git a/arch/x86/lib/fsp/Makefile b/arch/x86/lib/fsp1/Makefile
similarity index 100%
rename from arch/x86/lib/fsp/Makefile
rename to arch/x86/lib/fsp1/Makefile
diff --git a/arch/x86/lib/fsp/fsp_car.S b/arch/x86/lib/fsp1/fsp_car.S
similarity index 100%
rename from arch/x86/lib/fsp/fsp_car.S
rename to arch/x86/lib/fsp1/fsp_car.S
diff --git a/arch/x86/lib/fsp/fsp_common.c b/arch/x86/lib/fsp1/fsp_common.c
similarity index 99%
rename from arch/x86/lib/fsp/fsp_common.c
rename to arch/x86/lib/fsp1/fsp_common.c
index ed0827c6e92..591eef7b813 100644
--- a/arch/x86/lib/fsp/fsp_common.c
+++ b/arch/x86/lib/fsp1/fsp_common.c
@@ -14,7 +14,7 @@
 #include <asm/mrccache.h>
 #include <asm/post.h>
 #include <asm/processor.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/lib/fsp/fsp_dram.c b/arch/x86/lib/fsp1/fsp_dram.c
similarity index 98%
rename from arch/x86/lib/fsp/fsp_dram.c
rename to arch/x86/lib/fsp1/fsp_dram.c
index 3a23b70410b..3bf65b495ca 100644
--- a/arch/x86/lib/fsp/fsp_dram.c
+++ b/arch/x86/lib/fsp1/fsp_dram.c
@@ -4,7 +4,7 @@
  */
 
 #include <common.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 #include <asm/e820.h>
 #include <asm/mrccache.h>
 #include <asm/post.h>
diff --git a/arch/x86/lib/fsp/fsp_graphics.c b/arch/x86/lib/fsp1/fsp_graphics.c
similarity index 98%
rename from arch/x86/lib/fsp/fsp_graphics.c
rename to arch/x86/lib/fsp1/fsp_graphics.c
index 91d2d085572..52e71334f95 100644
--- a/arch/x86/lib/fsp/fsp_graphics.c
+++ b/arch/x86/lib/fsp1/fsp_graphics.c
@@ -7,7 +7,7 @@
 #include <dm.h>
 #include <vbe.h>
 #include <video.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/lib/fsp/fsp_support.c b/arch/x86/lib/fsp1/fsp_support.c
similarity index 99%
rename from arch/x86/lib/fsp/fsp_support.c
rename to arch/x86/lib/fsp1/fsp_support.c
index 0eaa9b232b1..019a42f53fe 100644
--- a/arch/x86/lib/fsp/fsp_support.c
+++ b/arch/x86/lib/fsp1/fsp_support.c
@@ -5,7 +5,7 @@
  */
 
 #include <common.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 #include <asm/post.h>
 
 struct fsp_header *__attribute__((optimize("O0"))) find_fsp_header(void)
diff --git a/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c b/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c
index ac12f303a3b..8f4c587371d 100644
--- a/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c
+++ b/board/advantech/som-db5800-som-6867/som-db5800-som-6867.c
@@ -5,7 +5,7 @@
  */
 
 #include <common.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 
 /* ALC262 Verb Table - 10EC0262 */
 static const u32 verb_table_data13[] = {
diff --git a/board/intel/cherryhill/cherryhill.c b/board/intel/cherryhill/cherryhill.c
index 695af6bb7ec..c037d5b14cd 100644
--- a/board/intel/cherryhill/cherryhill.c
+++ b/board/intel/cherryhill/cherryhill.c
@@ -5,7 +5,7 @@
 
 #include <common.h>
 #include <asm/arch/gpio.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 
 static const struct gpio_family gpio_family[] = {
 	GPIO_FAMILY_CONF("SOUTHEAST_2_hshvfamily_2x3_rcomp_7_0", NA, 0,
diff --git a/cmd/x86/fsp.c b/cmd/x86/fsp.c
index efa183854b7..fb27624422c 100644
--- a/cmd/x86/fsp.c
+++ b/cmd/x86/fsp.c
@@ -5,7 +5,7 @@
 
 #include <common.h>
 #include <command.h>
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index ab3e1310eb5..b73d0cd70a7 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -12,7 +12,7 @@
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #if defined(CONFIG_X86) && defined(CONFIG_HAVE_FSP)
-#include <asm/fsp/fsp_support.h>
+#include <asm/fsp1/fsp_support.h>
 #endif
 #include "pci_internal.h"
 
-- 
2.23.0.444.g18eeb5a265-goog

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

* [U-Boot] [PATCH v3 02/10] x86: Move fsp_azalia.h to the generic fsp directory
  2019-09-25 14:00 [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code Simon Glass
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 01/10] x86: Rename existing FSP code to fsp1 Simon Glass
@ 2019-09-25 14:00 ` Simon Glass
  2019-10-01 10:59   ` Bin Meng
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 03/10] x86: Create a new fsp_arch.h header Simon Glass
                   ` (7 subsequent siblings)
  9 siblings, 1 reply; 26+ messages in thread
From: Simon Glass @ 2019-09-25 14:00 UTC (permalink / raw)
  To: u-boot

This header file is the same for FSP v1 and v2. Move it into the general
fsp directory.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v3:
- Drop struct efi_guid and add a comment about forward declarations

Changes in v2:
- Rewrite to make azalia a common file for FSP1 and FSP2

 arch/x86/include/asm/{fsp1 => fsp}/fsp_azalia.h | 0
 arch/x86/include/asm/fsp1/fsp_support.h         | 5 ++++-
 2 files changed, 4 insertions(+), 1 deletion(-)
 rename arch/x86/include/asm/{fsp1 => fsp}/fsp_azalia.h (100%)

diff --git a/arch/x86/include/asm/fsp1/fsp_azalia.h b/arch/x86/include/asm/fsp/fsp_azalia.h
similarity index 100%
rename from arch/x86/include/asm/fsp1/fsp_azalia.h
rename to arch/x86/include/asm/fsp/fsp_azalia.h
diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
index 7b92392a277..6d30dd7fbc8 100644
--- a/arch/x86/include/asm/fsp1/fsp_support.h
+++ b/arch/x86/include/asm/fsp1/fsp_support.h
@@ -14,7 +14,7 @@
 #include "fsp_api.h"
 #include "fsp_infoheader.h"
 #include "fsp_bootmode.h"
-#include "fsp_azalia.h"
+#include <asm/fsp/fsp_azalia.h>
 #include <asm/arch/fsp/fsp_vpd.h>
 #include <asm/arch/fsp/fsp_configs.h>
 
@@ -22,6 +22,9 @@
 #define FSP_HIGHMEM_BASE	0x100000000ULL
 #define UPD_TERMINATOR		0x55AA
 
+/* Forward declarations for update_fsp_configs() */
+struct fspinit_rtbuf;
+struct fsp_config_data;
 
 /**
  * FSP Continuation assembly helper routine
-- 
2.23.0.444.g18eeb5a265-goog

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

* [U-Boot] [PATCH v3 03/10] x86: Create a new fsp_arch.h header
  2019-09-25 14:00 [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code Simon Glass
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 01/10] x86: Rename existing FSP code to fsp1 Simon Glass
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 02/10] x86: Move fsp_azalia.h to the generic fsp directory Simon Glass
@ 2019-09-25 14:00 ` Simon Glass
  2019-10-02 10:59   ` Bin Meng
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 04/10] x86: Move fsp_api.h inclusion out of fsp_support.h Simon Glass
                   ` (6 subsequent siblings)
  9 siblings, 1 reply; 26+ messages in thread
From: Simon Glass @ 2019-09-25 14:00 UTC (permalink / raw)
  To: u-boot

At present fsp_support.h includes fsp_vpd.h which is an FPSv1 concept
(VPD means Vital Product Data). For FSPv2 only UPD (Updatable Product
Data) is used.

To avoid mangling header files, put these two includes in a separate
header which we can adjust as necessary for FSPv2.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v3: None
Changes in v2: None

 arch/x86/include/asm/fsp1/fsp_support.h |  3 +--
 arch/x86/include/asm/fsp_arch.h         | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)
 create mode 100644 arch/x86/include/asm/fsp_arch.h

diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
index 6d30dd7fbc8..ae38fb4bdfe 100644
--- a/arch/x86/include/asm/fsp1/fsp_support.h
+++ b/arch/x86/include/asm/fsp1/fsp_support.h
@@ -14,9 +14,8 @@
 #include "fsp_api.h"
 #include "fsp_infoheader.h"
 #include "fsp_bootmode.h"
+#include <asm/fsp_arch.h>
 #include <asm/fsp/fsp_azalia.h>
-#include <asm/arch/fsp/fsp_vpd.h>
-#include <asm/arch/fsp/fsp_configs.h>
 
 #define FSP_LOWMEM_BASE		0x100000UL
 #define FSP_HIGHMEM_BASE	0x100000000ULL
diff --git a/arch/x86/include/asm/fsp_arch.h b/arch/x86/include/asm/fsp_arch.h
new file mode 100644
index 00000000000..fb7f9109f7b
--- /dev/null
+++ b/arch/x86/include/asm/fsp_arch.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2019 Google LLC
+ * Written by Simon Glass <sjg@chromium.org>
+ *
+ * Architecture-specific definitions (FSP config and VPD/UPD)
+ */
+
+#ifndef __FSP_ARCH_H__
+#define __FSP_ARCH_H__
+
+/*
+ * Note: use #ifndef __ASSEMBLY__ around any struct definitions or other C code
+ * since this file can be included from assembly.
+ */
+
+#include <asm/arch/fsp/fsp_vpd.h>
+#include <asm/arch/fsp/fsp_configs.h>
+
+#endif
-- 
2.23.0.444.g18eeb5a265-goog

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

* [U-Boot] [PATCH v3 04/10] x86: Move fsp_api.h inclusion out of fsp_support.h
  2019-09-25 14:00 [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code Simon Glass
                   ` (2 preceding siblings ...)
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 03/10] x86: Create a new fsp_arch.h header Simon Glass
@ 2019-09-25 14:00 ` Simon Glass
  2019-10-02 10:59   ` Bin Meng
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 05/10] x86: Move fsp_types.h to the generic fsp directory Simon Glass
                   ` (5 subsequent siblings)
  9 siblings, 1 reply; 26+ messages in thread
From: Simon Glass @ 2019-09-25 14:00 UTC (permalink / raw)
  To: u-boot

This header file is different for each version of FSP. Move it into the
fsp_arch.h header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v3: None
Changes in v2: None

 arch/x86/include/asm/fsp1/fsp_support.h | 1 -
 arch/x86/include/asm/fsp_arch.h         | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
index ae38fb4bdfe..b425ff1e0b2 100644
--- a/arch/x86/include/asm/fsp1/fsp_support.h
+++ b/arch/x86/include/asm/fsp1/fsp_support.h
@@ -11,7 +11,6 @@
 #include "fsp_hob.h"
 #include "fsp_fv.h"
 #include "fsp_ffs.h"
-#include "fsp_api.h"
 #include "fsp_infoheader.h"
 #include "fsp_bootmode.h"
 #include <asm/fsp_arch.h>
diff --git a/arch/x86/include/asm/fsp_arch.h b/arch/x86/include/asm/fsp_arch.h
index fb7f9109f7b..b223141c448 100644
--- a/arch/x86/include/asm/fsp_arch.h
+++ b/arch/x86/include/asm/fsp_arch.h
@@ -14,6 +14,7 @@
  * since this file can be included from assembly.
  */
 
+#include <asm/fsp1/fsp_api.h>
 #include <asm/arch/fsp/fsp_vpd.h>
 #include <asm/arch/fsp/fsp_configs.h>
 
-- 
2.23.0.444.g18eeb5a265-goog

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

* [U-Boot] [PATCH v3 05/10] x86: Move fsp_types.h to the generic fsp directory
  2019-09-25 14:00 [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code Simon Glass
                   ` (3 preceding siblings ...)
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 04/10] x86: Move fsp_api.h inclusion out of fsp_support.h Simon Glass
@ 2019-09-25 14:00 ` Simon Glass
  2019-10-02 10:59   ` Bin Meng
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 06/10] x86: Move fsp_fv.h " Simon Glass
                   ` (4 subsequent siblings)
  9 siblings, 1 reply; 26+ messages in thread
From: Simon Glass @ 2019-09-25 14:00 UTC (permalink / raw)
  To: u-boot

This header file is the same for FSP v1 and v2. Move it into the general
fsp directory.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v3: None
Changes in v2: None

 arch/x86/include/asm/{fsp1 => fsp}/fsp_types.h | 0
 arch/x86/include/asm/fsp1/fsp_support.h        | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename arch/x86/include/asm/{fsp1 => fsp}/fsp_types.h (100%)

diff --git a/arch/x86/include/asm/fsp1/fsp_types.h b/arch/x86/include/asm/fsp/fsp_types.h
similarity index 100%
rename from arch/x86/include/asm/fsp1/fsp_types.h
rename to arch/x86/include/asm/fsp/fsp_types.h
diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
index b425ff1e0b2..2677b6e429a 100644
--- a/arch/x86/include/asm/fsp1/fsp_support.h
+++ b/arch/x86/include/asm/fsp1/fsp_support.h
@@ -7,7 +7,7 @@
 #ifndef __FSP_SUPPORT_H__
 #define __FSP_SUPPORT_H__
 
-#include "fsp_types.h"
+#include <asm/fsp/fsp_types.h>
 #include "fsp_hob.h"
 #include "fsp_fv.h"
 #include "fsp_ffs.h"
-- 
2.23.0.444.g18eeb5a265-goog

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

* [U-Boot] [PATCH v3 06/10] x86: Move fsp_fv.h to the generic fsp directory
  2019-09-25 14:00 [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code Simon Glass
                   ` (4 preceding siblings ...)
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 05/10] x86: Move fsp_types.h to the generic fsp directory Simon Glass
@ 2019-09-25 14:00 ` Simon Glass
  2019-10-02 10:59   ` Bin Meng
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 07/10] x86: Move fsp_hob.h " Simon Glass
                   ` (3 subsequent siblings)
  9 siblings, 1 reply; 26+ messages in thread
From: Simon Glass @ 2019-09-25 14:00 UTC (permalink / raw)
  To: u-boot

This header file is the same for FSP v1 and v2. Move it into the general
fsp directory.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v3: None
Changes in v2: None

 arch/x86/include/asm/{fsp1 => fsp}/fsp_fv.h | 0
 arch/x86/include/asm/fsp1/fsp_support.h     | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename arch/x86/include/asm/{fsp1 => fsp}/fsp_fv.h (100%)

diff --git a/arch/x86/include/asm/fsp1/fsp_fv.h b/arch/x86/include/asm/fsp/fsp_fv.h
similarity index 100%
rename from arch/x86/include/asm/fsp1/fsp_fv.h
rename to arch/x86/include/asm/fsp/fsp_fv.h
diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
index 2677b6e429a..de3b1936be8 100644
--- a/arch/x86/include/asm/fsp1/fsp_support.h
+++ b/arch/x86/include/asm/fsp1/fsp_support.h
@@ -7,9 +7,9 @@
 #ifndef __FSP_SUPPORT_H__
 #define __FSP_SUPPORT_H__
 
+#include <asm/fsp/fsp_fv.h>
 #include <asm/fsp/fsp_types.h>
 #include "fsp_hob.h"
-#include "fsp_fv.h"
 #include "fsp_ffs.h"
 #include "fsp_infoheader.h"
 #include "fsp_bootmode.h"
-- 
2.23.0.444.g18eeb5a265-goog

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

* [U-Boot] [PATCH v3 07/10] x86: Move fsp_hob.h to the generic fsp directory
  2019-09-25 14:00 [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code Simon Glass
                   ` (5 preceding siblings ...)
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 06/10] x86: Move fsp_fv.h " Simon Glass
@ 2019-09-25 14:00 ` Simon Glass
  2019-10-02  0:00   ` Bin Meng
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 08/10] x86: Move fsp_infoheader.h " Simon Glass
                   ` (2 subsequent siblings)
  9 siblings, 1 reply; 26+ messages in thread
From: Simon Glass @ 2019-09-25 14:00 UTC (permalink / raw)
  To: u-boot

This header file is the same for FSP v1 and v2. Move it into the general
fsp directory.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v3: None
Changes in v2: None

 arch/x86/include/asm/{fsp1 => fsp}/fsp_hob.h        | 0
 arch/x86/include/asm/{fsp1 => fsp}/fsp_infoheader.h | 0
 arch/x86/include/asm/fsp1/fsp_support.h             | 1 +
 3 files changed, 1 insertion(+)
 rename arch/x86/include/asm/{fsp1 => fsp}/fsp_hob.h (100%)
 rename arch/x86/include/asm/{fsp1 => fsp}/fsp_infoheader.h (100%)

diff --git a/arch/x86/include/asm/fsp1/fsp_hob.h b/arch/x86/include/asm/fsp/fsp_hob.h
similarity index 100%
rename from arch/x86/include/asm/fsp1/fsp_hob.h
rename to arch/x86/include/asm/fsp/fsp_hob.h
diff --git a/arch/x86/include/asm/fsp1/fsp_infoheader.h b/arch/x86/include/asm/fsp/fsp_infoheader.h
similarity index 100%
rename from arch/x86/include/asm/fsp1/fsp_infoheader.h
rename to arch/x86/include/asm/fsp/fsp_infoheader.h
diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
index de3b1936be8..2f1c5fbb546 100644
--- a/arch/x86/include/asm/fsp1/fsp_support.h
+++ b/arch/x86/include/asm/fsp1/fsp_support.h
@@ -8,6 +8,7 @@
 #define __FSP_SUPPORT_H__
 
 #include <asm/fsp/fsp_fv.h>
+#include <asm/fsp/fsp_hob.h>
 #include <asm/fsp/fsp_types.h>
 #include "fsp_hob.h"
 #include "fsp_ffs.h"
-- 
2.23.0.444.g18eeb5a265-goog

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

* [U-Boot] [PATCH v3 08/10] x86: Move fsp_infoheader.h to the generic fsp directory
  2019-09-25 14:00 [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code Simon Glass
                   ` (6 preceding siblings ...)
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 07/10] x86: Move fsp_hob.h " Simon Glass
@ 2019-09-25 14:00 ` Simon Glass
  2019-10-02 11:00   ` Bin Meng
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 09/10] x86: Move fsp_bootmode.h " Simon Glass
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 10/10] x86: Move fsp_ffs.h include to fsp_arch.h Simon Glass
  9 siblings, 1 reply; 26+ messages in thread
From: Simon Glass @ 2019-09-25 14:00 UTC (permalink / raw)
  To: u-boot

This header file is the same for FSP v1 and v2. Move it into the general
fsp directory.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v3: None
Changes in v2: None

 arch/x86/include/asm/fsp1/fsp_support.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
index 2f1c5fbb546..3582c0a8a08 100644
--- a/arch/x86/include/asm/fsp1/fsp_support.h
+++ b/arch/x86/include/asm/fsp1/fsp_support.h
@@ -9,10 +9,10 @@
 
 #include <asm/fsp/fsp_fv.h>
 #include <asm/fsp/fsp_hob.h>
+#include <asm/fsp/fsp_infoheader.h>
 #include <asm/fsp/fsp_types.h>
 #include "fsp_hob.h"
 #include "fsp_ffs.h"
-#include "fsp_infoheader.h"
 #include "fsp_bootmode.h"
 #include <asm/fsp_arch.h>
 #include <asm/fsp/fsp_azalia.h>
-- 
2.23.0.444.g18eeb5a265-goog

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

* [U-Boot] [PATCH v3 09/10] x86: Move fsp_bootmode.h to the generic fsp directory
  2019-09-25 14:00 [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code Simon Glass
                   ` (7 preceding siblings ...)
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 08/10] x86: Move fsp_infoheader.h " Simon Glass
@ 2019-09-25 14:00 ` Simon Glass
  2019-10-02 11:00   ` Bin Meng
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 10/10] x86: Move fsp_ffs.h include to fsp_arch.h Simon Glass
  9 siblings, 1 reply; 26+ messages in thread
From: Simon Glass @ 2019-09-25 14:00 UTC (permalink / raw)
  To: u-boot

This header file is the same for FSP v1 and v2, although there may be
some additions to come. Move it into the generic fsp directory.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v3: None
Changes in v2: None

 arch/x86/include/asm/{fsp1 => fsp}/fsp_bootmode.h | 0
 arch/x86/include/asm/fsp1/fsp_support.h           | 3 +--
 2 files changed, 1 insertion(+), 2 deletions(-)
 rename arch/x86/include/asm/{fsp1 => fsp}/fsp_bootmode.h (100%)

diff --git a/arch/x86/include/asm/fsp1/fsp_bootmode.h b/arch/x86/include/asm/fsp/fsp_bootmode.h
similarity index 100%
rename from arch/x86/include/asm/fsp1/fsp_bootmode.h
rename to arch/x86/include/asm/fsp/fsp_bootmode.h
diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
index 3582c0a8a08..d69c0a4986a 100644
--- a/arch/x86/include/asm/fsp1/fsp_support.h
+++ b/arch/x86/include/asm/fsp1/fsp_support.h
@@ -7,13 +7,12 @@
 #ifndef __FSP_SUPPORT_H__
 #define __FSP_SUPPORT_H__
 
+#include <asm/fsp/fsp_bootmode.h>
 #include <asm/fsp/fsp_fv.h>
 #include <asm/fsp/fsp_hob.h>
 #include <asm/fsp/fsp_infoheader.h>
 #include <asm/fsp/fsp_types.h>
-#include "fsp_hob.h"
 #include "fsp_ffs.h"
-#include "fsp_bootmode.h"
 #include <asm/fsp_arch.h>
 #include <asm/fsp/fsp_azalia.h>
 
-- 
2.23.0.444.g18eeb5a265-goog

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

* [U-Boot] [PATCH v3 10/10] x86: Move fsp_ffs.h include to fsp_arch.h
  2019-09-25 14:00 [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code Simon Glass
                   ` (8 preceding siblings ...)
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 09/10] x86: Move fsp_bootmode.h " Simon Glass
@ 2019-09-25 14:00 ` Simon Glass
  2019-10-02 11:00   ` Bin Meng
  9 siblings, 1 reply; 26+ messages in thread
From: Simon Glass @ 2019-09-25 14:00 UTC (permalink / raw)
  To: u-boot

This include file is only used for FSP v1. Avoid including it from
fdt_support.h so we can use the latter with FSP v2.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v3: None
Changes in v2: None

 arch/x86/include/asm/fsp_arch.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/include/asm/fsp_arch.h b/arch/x86/include/asm/fsp_arch.h
index b223141c448..3b2077b3924 100644
--- a/arch/x86/include/asm/fsp_arch.h
+++ b/arch/x86/include/asm/fsp_arch.h
@@ -15,6 +15,7 @@
  */
 
 #include <asm/fsp1/fsp_api.h>
+#include <asm/fsp1/fsp_ffs.h>
 #include <asm/arch/fsp/fsp_vpd.h>
 #include <asm/arch/fsp/fsp_configs.h>
 
-- 
2.23.0.444.g18eeb5a265-goog

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

* [U-Boot] [PATCH v3 02/10] x86: Move fsp_azalia.h to the generic fsp directory
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 02/10] x86: Move fsp_azalia.h to the generic fsp directory Simon Glass
@ 2019-10-01 10:59   ` Bin Meng
  2019-10-01 17:39     ` Simon Glass
  0 siblings, 1 reply; 26+ messages in thread
From: Bin Meng @ 2019-10-01 10:59 UTC (permalink / raw)
  To: u-boot

Hi Simon,

On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
>
> This header file is the same for FSP v1 and v2. Move it into the general
> fsp directory.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v3:
> - Drop struct efi_guid and add a comment about forward declarations
>
> Changes in v2:
> - Rewrite to make azalia a common file for FSP1 and FSP2
>
>  arch/x86/include/asm/{fsp1 => fsp}/fsp_azalia.h | 0
>  arch/x86/include/asm/fsp1/fsp_support.h         | 5 ++++-
>  2 files changed, 4 insertions(+), 1 deletion(-)
>  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_azalia.h (100%)
>
> diff --git a/arch/x86/include/asm/fsp1/fsp_azalia.h b/arch/x86/include/asm/fsp/fsp_azalia.h
> similarity index 100%
> rename from arch/x86/include/asm/fsp1/fsp_azalia.h
> rename to arch/x86/include/asm/fsp/fsp_azalia.h
> diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
> index 7b92392a277..6d30dd7fbc8 100644
> --- a/arch/x86/include/asm/fsp1/fsp_support.h
> +++ b/arch/x86/include/asm/fsp1/fsp_support.h
> @@ -14,7 +14,7 @@
>  #include "fsp_api.h"
>  #include "fsp_infoheader.h"
>  #include "fsp_bootmode.h"
> -#include "fsp_azalia.h"
> +#include <asm/fsp/fsp_azalia.h>
>  #include <asm/arch/fsp/fsp_vpd.h>
>  #include <asm/arch/fsp/fsp_configs.h>
>
> @@ -22,6 +22,9 @@
>  #define FSP_HIGHMEM_BASE       0x100000000ULL
>  #define UPD_TERMINATOR         0x55AA
>
> +/* Forward declarations for update_fsp_configs() */

These two structs are defined in <asm/arch/fsp/fsp_configs.h> and the
header is already included.

They should be dropped from this patch. Let me know if you have different idea.

I can fix this when applying.

> +struct fspinit_rtbuf;
> +struct fsp_config_data;
>
>  /**
>   * FSP Continuation assembly helper routine
> --

Regards,
Bin

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

* [U-Boot] [PATCH v3 02/10] x86: Move fsp_azalia.h to the generic fsp directory
  2019-10-01 10:59   ` Bin Meng
@ 2019-10-01 17:39     ` Simon Glass
  2019-10-01 22:55       ` Bin Meng
  0 siblings, 1 reply; 26+ messages in thread
From: Simon Glass @ 2019-10-01 17:39 UTC (permalink / raw)
  To: u-boot

Hi Bin,

On Tue, 1 Oct 2019 at 04:59, Bin Meng <bmeng.cn@gmail.com> wrote:
>
> Hi Simon,
>
> On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
> >
> > This header file is the same for FSP v1 and v2. Move it into the general
> > fsp directory.
> >
> > Signed-off-by: Simon Glass <sjg@chromium.org>
> > ---
> >
> > Changes in v3:
> > - Drop struct efi_guid and add a comment about forward declarations
> >
> > Changes in v2:
> > - Rewrite to make azalia a common file for FSP1 and FSP2
> >
> >  arch/x86/include/asm/{fsp1 => fsp}/fsp_azalia.h | 0
> >  arch/x86/include/asm/fsp1/fsp_support.h         | 5 ++++-
> >  2 files changed, 4 insertions(+), 1 deletion(-)
> >  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_azalia.h (100%)
> >
> > diff --git a/arch/x86/include/asm/fsp1/fsp_azalia.h b/arch/x86/include/asm/fsp/fsp_azalia.h
> > similarity index 100%
> > rename from arch/x86/include/asm/fsp1/fsp_azalia.h
> > rename to arch/x86/include/asm/fsp/fsp_azalia.h
> > diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
> > index 7b92392a277..6d30dd7fbc8 100644
> > --- a/arch/x86/include/asm/fsp1/fsp_support.h
> > +++ b/arch/x86/include/asm/fsp1/fsp_support.h
> > @@ -14,7 +14,7 @@
> >  #include "fsp_api.h"
> >  #include "fsp_infoheader.h"
> >  #include "fsp_bootmode.h"
> > -#include "fsp_azalia.h"
> > +#include <asm/fsp/fsp_azalia.h>
> >  #include <asm/arch/fsp/fsp_vpd.h>
> >  #include <asm/arch/fsp/fsp_configs.h>
> >
> > @@ -22,6 +22,9 @@
> >  #define FSP_HIGHMEM_BASE       0x100000000ULL
> >  #define UPD_TERMINATOR         0x55AA
> >
> > +/* Forward declarations for update_fsp_configs() */
>
> These two structs are defined in <asm/arch/fsp/fsp_configs.h> and the
> header is already included.
>
> They should be dropped from this patch. Let me know if you have different idea.

I suppose that is OK. My goal was to avoid #include in header files
where possible, but it's not important here.

Thank you.

>
> I can fix this when applying.
>
> > +struct fspinit_rtbuf;
> > +struct fsp_config_data;
> >
> >  /**
> >   * FSP Continuation assembly helper routine
> > --
>
> Regards,
> Bin

Regards,
Simon

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

* [U-Boot] [PATCH v3 02/10] x86: Move fsp_azalia.h to the generic fsp directory
  2019-10-01 17:39     ` Simon Glass
@ 2019-10-01 22:55       ` Bin Meng
  2019-10-02 10:59         ` Bin Meng
  0 siblings, 1 reply; 26+ messages in thread
From: Bin Meng @ 2019-10-01 22:55 UTC (permalink / raw)
  To: u-boot

Hi Simon,

On Wed, Oct 2, 2019 at 1:39 AM Simon Glass <sjg@chromium.org> wrote:
>
> Hi Bin,
>
> On Tue, 1 Oct 2019 at 04:59, Bin Meng <bmeng.cn@gmail.com> wrote:
> >
> > Hi Simon,
> >
> > On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
> > >
> > > This header file is the same for FSP v1 and v2. Move it into the general
> > > fsp directory.
> > >
> > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > ---
> > >
> > > Changes in v3:
> > > - Drop struct efi_guid and add a comment about forward declarations
> > >
> > > Changes in v2:
> > > - Rewrite to make azalia a common file for FSP1 and FSP2
> > >
> > >  arch/x86/include/asm/{fsp1 => fsp}/fsp_azalia.h | 0
> > >  arch/x86/include/asm/fsp1/fsp_support.h         | 5 ++++-
> > >  2 files changed, 4 insertions(+), 1 deletion(-)
> > >  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_azalia.h (100%)
> > >
> > > diff --git a/arch/x86/include/asm/fsp1/fsp_azalia.h b/arch/x86/include/asm/fsp/fsp_azalia.h
> > > similarity index 100%
> > > rename from arch/x86/include/asm/fsp1/fsp_azalia.h
> > > rename to arch/x86/include/asm/fsp/fsp_azalia.h
> > > diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
> > > index 7b92392a277..6d30dd7fbc8 100644
> > > --- a/arch/x86/include/asm/fsp1/fsp_support.h
> > > +++ b/arch/x86/include/asm/fsp1/fsp_support.h
> > > @@ -14,7 +14,7 @@
> > >  #include "fsp_api.h"
> > >  #include "fsp_infoheader.h"
> > >  #include "fsp_bootmode.h"
> > > -#include "fsp_azalia.h"
> > > +#include <asm/fsp/fsp_azalia.h>
> > >  #include <asm/arch/fsp/fsp_vpd.h>
> > >  #include <asm/arch/fsp/fsp_configs.h>
> > >
> > > @@ -22,6 +22,9 @@
> > >  #define FSP_HIGHMEM_BASE       0x100000000ULL
> > >  #define UPD_TERMINATOR         0x55AA
> > >
> > > +/* Forward declarations for update_fsp_configs() */
> >
> > These two structs are defined in <asm/arch/fsp/fsp_configs.h> and the
> > header is already included.
> >
> > They should be dropped from this patch. Let me know if you have different idea.
>
> I suppose that is OK. My goal was to avoid #include in header files
> where possible, but it's not important here.

Yes, I understand your intention.

>
> Thank you.
>
> >
> > I can fix this when applying.

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

> >
> > > +struct fspinit_rtbuf;
> > > +struct fsp_config_data;
> > >
> > >  /**
> > >   * FSP Continuation assembly helper routine
> > > --
> >

Regards,
Bin

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

* [U-Boot] [PATCH v3 07/10] x86: Move fsp_hob.h to the generic fsp directory
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 07/10] x86: Move fsp_hob.h " Simon Glass
@ 2019-10-02  0:00   ` Bin Meng
  2019-10-02  0:05     ` Bin Meng
  0 siblings, 1 reply; 26+ messages in thread
From: Bin Meng @ 2019-10-02  0:00 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
>
> This header file is the same for FSP v1 and v2. Move it into the general
> fsp directory.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/x86/include/asm/{fsp1 => fsp}/fsp_hob.h        | 0
>  arch/x86/include/asm/{fsp1 => fsp}/fsp_infoheader.h | 0
>  arch/x86/include/asm/fsp1/fsp_support.h             | 1 +
>  3 files changed, 1 insertion(+)
>  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_hob.h (100%)
>  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_infoheader.h (100%)
>
> diff --git a/arch/x86/include/asm/fsp1/fsp_hob.h b/arch/x86/include/asm/fsp/fsp_hob.h
> similarity index 100%
> rename from arch/x86/include/asm/fsp1/fsp_hob.h
> rename to arch/x86/include/asm/fsp/fsp_hob.h
> diff --git a/arch/x86/include/asm/fsp1/fsp_infoheader.h b/arch/x86/include/asm/fsp/fsp_infoheader.h
> similarity index 100%
> rename from arch/x86/include/asm/fsp1/fsp_infoheader.h
> rename to arch/x86/include/asm/fsp/fsp_infoheader.h
> diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
> index de3b1936be8..2f1c5fbb546 100644
> --- a/arch/x86/include/asm/fsp1/fsp_support.h
> +++ b/arch/x86/include/asm/fsp1/fsp_support.h
> @@ -8,6 +8,7 @@
>  #define __FSP_SUPPORT_H__
>
>  #include <asm/fsp/fsp_fv.h>
> +#include <asm/fsp/fsp_hob.h>
>  #include <asm/fsp/fsp_types.h>
>  #include "fsp_hob.h"

This line should be dropped. I will fix it when applying.

>  #include "fsp_ffs.h"
> --

Regards,
Bin

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

* [U-Boot] [PATCH v3 07/10] x86: Move fsp_hob.h to the generic fsp directory
  2019-10-02  0:00   ` Bin Meng
@ 2019-10-02  0:05     ` Bin Meng
  2019-10-02 11:00       ` Bin Meng
  0 siblings, 1 reply; 26+ messages in thread
From: Bin Meng @ 2019-10-02  0:05 UTC (permalink / raw)
  To: u-boot

On Wed, Oct 2, 2019 at 8:00 AM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
> >
> > This header file is the same for FSP v1 and v2. Move it into the general
> > fsp directory.
> >
> > Signed-off-by: Simon Glass <sjg@chromium.org>
> > Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> > ---
> >
> > Changes in v3: None
> > Changes in v2: None
> >
> >  arch/x86/include/asm/{fsp1 => fsp}/fsp_hob.h        | 0
> >  arch/x86/include/asm/{fsp1 => fsp}/fsp_infoheader.h | 0
> >  arch/x86/include/asm/fsp1/fsp_support.h             | 1 +
> >  3 files changed, 1 insertion(+)
> >  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_hob.h (100%)
> >  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_infoheader.h (100%)
> >
> > diff --git a/arch/x86/include/asm/fsp1/fsp_hob.h b/arch/x86/include/asm/fsp/fsp_hob.h
> > similarity index 100%
> > rename from arch/x86/include/asm/fsp1/fsp_hob.h
> > rename to arch/x86/include/asm/fsp/fsp_hob.h
> > diff --git a/arch/x86/include/asm/fsp1/fsp_infoheader.h b/arch/x86/include/asm/fsp/fsp_infoheader.h
> > similarity index 100%
> > rename from arch/x86/include/asm/fsp1/fsp_infoheader.h
> > rename to arch/x86/include/asm/fsp/fsp_infoheader.h

The rename of fsp_infoheader.h should be in the next patch, to keep
the bisectability.

I will fix it when applying.

> > diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
> > index de3b1936be8..2f1c5fbb546 100644
> > --- a/arch/x86/include/asm/fsp1/fsp_support.h
> > +++ b/arch/x86/include/asm/fsp1/fsp_support.h
> > @@ -8,6 +8,7 @@
> >  #define __FSP_SUPPORT_H__
> >
> >  #include <asm/fsp/fsp_fv.h>
> > +#include <asm/fsp/fsp_hob.h>
> >  #include <asm/fsp/fsp_types.h>
> >  #include "fsp_hob.h"
>
> This line should be dropped. I will fix it when applying.
>
> >  #include "fsp_ffs.h"
> > --
>
> Regards,
> Bin

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

* [U-Boot] [PATCH v3 01/10] x86: Rename existing FSP code to fsp1
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 01/10] x86: Rename existing FSP code to fsp1 Simon Glass
@ 2019-10-02 10:59   ` Bin Meng
  0 siblings, 0 replies; 26+ messages in thread
From: Bin Meng @ 2019-10-02 10:59 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
>
> Since there is now a new version of the FSP and it is incompatible with
> the existing version, move the code into an fsp1 directory. This will
> allow us to put FSP v2 code into an fsp2 directory.
>
> Add a Kconfig which defines which version is in use.
>
> Some of the code in this new fsp1/ directory is generic across both FSPv1
> and FSPv2. Future patches will address this.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2:
> - Correct Intel FSP web link
>
>  arch/x86/Kconfig                              | 25 ++++++++++++++++++-
>  arch/x86/cpu/baytrail/acpi.c                  |  2 +-
>  arch/x86/cpu/baytrail/fsp_configs.c           |  2 +-
>  arch/x86/cpu/braswell/fsp_configs.c           |  2 +-
>  arch/x86/cpu/ivybridge/fsp_configs.c          |  2 +-
>  arch/x86/cpu/queensbay/fsp_configs.c          |  2 +-
>  arch/x86/cpu/queensbay/tnc.c                  |  2 +-
>  arch/x86/include/asm/{fsp => fsp1}/fsp_api.h  |  0
>  .../include/asm/{fsp => fsp1}/fsp_azalia.h    |  0
>  .../include/asm/{fsp => fsp1}/fsp_bootmode.h  |  0
>  arch/x86/include/asm/{fsp => fsp1}/fsp_ffs.h  |  0
>  arch/x86/include/asm/{fsp => fsp1}/fsp_fv.h   |  0
>  arch/x86/include/asm/{fsp => fsp1}/fsp_hob.h  |  0
>  .../asm/{fsp => fsp1}/fsp_infoheader.h        |  0
>  .../include/asm/{fsp => fsp1}/fsp_support.h   |  0
>  .../x86/include/asm/{fsp => fsp1}/fsp_types.h |  0
>  arch/x86/include/asm/u-boot-x86.h             |  2 +-
>  arch/x86/lib/Makefile                         |  3 ++-
>  arch/x86/lib/{fsp => fsp1}/Makefile           |  0
>  arch/x86/lib/{fsp => fsp1}/fsp_car.S          |  0
>  arch/x86/lib/{fsp => fsp1}/fsp_common.c       |  2 +-
>  arch/x86/lib/{fsp => fsp1}/fsp_dram.c         |  2 +-
>  arch/x86/lib/{fsp => fsp1}/fsp_graphics.c     |  2 +-
>  arch/x86/lib/{fsp => fsp1}/fsp_support.c      |  2 +-
>  .../som-db5800-som-6867/som-db5800-som-6867.c |  2 +-
>  board/intel/cherryhill/cherryhill.c           |  2 +-
>  cmd/x86/fsp.c                                 |  2 +-
>  drivers/pci/pci-uclass.c                      |  2 +-
>  28 files changed, 41 insertions(+), 17 deletions(-)
>  rename arch/x86/include/asm/{fsp => fsp1}/fsp_api.h (100%)
>  rename arch/x86/include/asm/{fsp => fsp1}/fsp_azalia.h (100%)
>  rename arch/x86/include/asm/{fsp => fsp1}/fsp_bootmode.h (100%)
>  rename arch/x86/include/asm/{fsp => fsp1}/fsp_ffs.h (100%)
>  rename arch/x86/include/asm/{fsp => fsp1}/fsp_fv.h (100%)
>  rename arch/x86/include/asm/{fsp => fsp1}/fsp_hob.h (100%)
>  rename arch/x86/include/asm/{fsp => fsp1}/fsp_infoheader.h (100%)
>  rename arch/x86/include/asm/{fsp => fsp1}/fsp_support.h (100%)
>  rename arch/x86/include/asm/{fsp => fsp1}/fsp_types.h (100%)
>  rename arch/x86/lib/{fsp => fsp1}/Makefile (100%)
>  rename arch/x86/lib/{fsp => fsp1}/fsp_car.S (100%)
>  rename arch/x86/lib/{fsp => fsp1}/fsp_common.c (99%)
>  rename arch/x86/lib/{fsp => fsp1}/fsp_dram.c (98%)
>  rename arch/x86/lib/{fsp => fsp1}/fsp_graphics.c (98%)
>  rename arch/x86/lib/{fsp => fsp1}/fsp_support.c (99%)
>

applied to u-boot-x86/next, thanks!

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

* [U-Boot] [PATCH v3 02/10] x86: Move fsp_azalia.h to the generic fsp directory
  2019-10-01 22:55       ` Bin Meng
@ 2019-10-02 10:59         ` Bin Meng
  0 siblings, 0 replies; 26+ messages in thread
From: Bin Meng @ 2019-10-02 10:59 UTC (permalink / raw)
  To: u-boot

On Wed, Oct 2, 2019 at 6:55 AM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> Hi Simon,
>
> On Wed, Oct 2, 2019 at 1:39 AM Simon Glass <sjg@chromium.org> wrote:
> >
> > Hi Bin,
> >
> > On Tue, 1 Oct 2019 at 04:59, Bin Meng <bmeng.cn@gmail.com> wrote:
> > >
> > > Hi Simon,
> > >
> > > On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
> > > >
> > > > This header file is the same for FSP v1 and v2. Move it into the general
> > > > fsp directory.
> > > >
> > > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > > ---
> > > >
> > > > Changes in v3:
> > > > - Drop struct efi_guid and add a comment about forward declarations
> > > >
> > > > Changes in v2:
> > > > - Rewrite to make azalia a common file for FSP1 and FSP2
> > > >
> > > >  arch/x86/include/asm/{fsp1 => fsp}/fsp_azalia.h | 0
> > > >  arch/x86/include/asm/fsp1/fsp_support.h         | 5 ++++-
> > > >  2 files changed, 4 insertions(+), 1 deletion(-)
> > > >  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_azalia.h (100%)
> > > >
> > > > diff --git a/arch/x86/include/asm/fsp1/fsp_azalia.h b/arch/x86/include/asm/fsp/fsp_azalia.h
> > > > similarity index 100%
> > > > rename from arch/x86/include/asm/fsp1/fsp_azalia.h
> > > > rename to arch/x86/include/asm/fsp/fsp_azalia.h
> > > > diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
> > > > index 7b92392a277..6d30dd7fbc8 100644
> > > > --- a/arch/x86/include/asm/fsp1/fsp_support.h
> > > > +++ b/arch/x86/include/asm/fsp1/fsp_support.h
> > > > @@ -14,7 +14,7 @@
> > > >  #include "fsp_api.h"
> > > >  #include "fsp_infoheader.h"
> > > >  #include "fsp_bootmode.h"
> > > > -#include "fsp_azalia.h"
> > > > +#include <asm/fsp/fsp_azalia.h>
> > > >  #include <asm/arch/fsp/fsp_vpd.h>
> > > >  #include <asm/arch/fsp/fsp_configs.h>
> > > >
> > > > @@ -22,6 +22,9 @@
> > > >  #define FSP_HIGHMEM_BASE       0x100000000ULL
> > > >  #define UPD_TERMINATOR         0x55AA
> > > >
> > > > +/* Forward declarations for update_fsp_configs() */
> > >
> > > These two structs are defined in <asm/arch/fsp/fsp_configs.h> and the
> > > header is already included.
> > >
> > > They should be dropped from this patch. Let me know if you have different idea.
> >
> > I suppose that is OK. My goal was to avoid #include in header files
> > where possible, but it's not important here.
>
> Yes, I understand your intention.
>
> >
> > Thank you.
> >
> > >
> > > I can fix this when applying.

Fixed the issue, and

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

applied to u-boot-x86/next, thanks!

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

* [U-Boot] [PATCH v3 03/10] x86: Create a new fsp_arch.h header
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 03/10] x86: Create a new fsp_arch.h header Simon Glass
@ 2019-10-02 10:59   ` Bin Meng
  0 siblings, 0 replies; 26+ messages in thread
From: Bin Meng @ 2019-10-02 10:59 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
>
> At present fsp_support.h includes fsp_vpd.h which is an FPSv1 concept
> (VPD means Vital Product Data). For FSPv2 only UPD (Updatable Product
> Data) is used.
>
> To avoid mangling header files, put these two includes in a separate
> header which we can adjust as necessary for FSPv2.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/x86/include/asm/fsp1/fsp_support.h |  3 +--
>  arch/x86/include/asm/fsp_arch.h         | 20 ++++++++++++++++++++
>  2 files changed, 21 insertions(+), 2 deletions(-)
>  create mode 100644 arch/x86/include/asm/fsp_arch.h
>

applied to u-boot-x86/next, thanks!

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

* [U-Boot] [PATCH v3 04/10] x86: Move fsp_api.h inclusion out of fsp_support.h
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 04/10] x86: Move fsp_api.h inclusion out of fsp_support.h Simon Glass
@ 2019-10-02 10:59   ` Bin Meng
  0 siblings, 0 replies; 26+ messages in thread
From: Bin Meng @ 2019-10-02 10:59 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
>
> This header file is different for each version of FSP. Move it into the
> fsp_arch.h header file.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/x86/include/asm/fsp1/fsp_support.h | 1 -
>  arch/x86/include/asm/fsp_arch.h         | 1 +
>  2 files changed, 1 insertion(+), 1 deletion(-)
>

applied to u-boot-x86/next, thanks!

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

* [U-Boot] [PATCH v3 05/10] x86: Move fsp_types.h to the generic fsp directory
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 05/10] x86: Move fsp_types.h to the generic fsp directory Simon Glass
@ 2019-10-02 10:59   ` Bin Meng
  0 siblings, 0 replies; 26+ messages in thread
From: Bin Meng @ 2019-10-02 10:59 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
>
> This header file is the same for FSP v1 and v2. Move it into the general
> fsp directory.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/x86/include/asm/{fsp1 => fsp}/fsp_types.h | 0
>  arch/x86/include/asm/fsp1/fsp_support.h        | 2 +-
>  2 files changed, 1 insertion(+), 1 deletion(-)
>  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_types.h (100%)
>

applied to u-boot-x86/next, thanks!

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

* [U-Boot] [PATCH v3 06/10] x86: Move fsp_fv.h to the generic fsp directory
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 06/10] x86: Move fsp_fv.h " Simon Glass
@ 2019-10-02 10:59   ` Bin Meng
  0 siblings, 0 replies; 26+ messages in thread
From: Bin Meng @ 2019-10-02 10:59 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
>
> This header file is the same for FSP v1 and v2. Move it into the general
> fsp directory.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/x86/include/asm/{fsp1 => fsp}/fsp_fv.h | 0
>  arch/x86/include/asm/fsp1/fsp_support.h     | 2 +-
>  2 files changed, 1 insertion(+), 1 deletion(-)
>  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_fv.h (100%)
>

applied to u-boot-x86/next, thanks!

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

* [U-Boot] [PATCH v3 07/10] x86: Move fsp_hob.h to the generic fsp directory
  2019-10-02  0:05     ` Bin Meng
@ 2019-10-02 11:00       ` Bin Meng
  0 siblings, 0 replies; 26+ messages in thread
From: Bin Meng @ 2019-10-02 11:00 UTC (permalink / raw)
  To: u-boot

On Wed, Oct 2, 2019 at 8:05 AM Bin Meng <bmeng.cn@gmail.com> wrote:
>
> On Wed, Oct 2, 2019 at 8:00 AM Bin Meng <bmeng.cn@gmail.com> wrote:
> >
> > On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
> > >
> > > This header file is the same for FSP v1 and v2. Move it into the general
> > > fsp directory.
> > >
> > > Signed-off-by: Simon Glass <sjg@chromium.org>
> > > Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> > > ---
> > >
> > > Changes in v3: None
> > > Changes in v2: None
> > >
> > >  arch/x86/include/asm/{fsp1 => fsp}/fsp_hob.h        | 0
> > >  arch/x86/include/asm/{fsp1 => fsp}/fsp_infoheader.h | 0
> > >  arch/x86/include/asm/fsp1/fsp_support.h             | 1 +
> > >  3 files changed, 1 insertion(+)
> > >  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_hob.h (100%)
> > >  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_infoheader.h (100%)
> > >
> > > diff --git a/arch/x86/include/asm/fsp1/fsp_hob.h b/arch/x86/include/asm/fsp/fsp_hob.h
> > > similarity index 100%
> > > rename from arch/x86/include/asm/fsp1/fsp_hob.h
> > > rename to arch/x86/include/asm/fsp/fsp_hob.h
> > > diff --git a/arch/x86/include/asm/fsp1/fsp_infoheader.h b/arch/x86/include/asm/fsp/fsp_infoheader.h
> > > similarity index 100%
> > > rename from arch/x86/include/asm/fsp1/fsp_infoheader.h
> > > rename to arch/x86/include/asm/fsp/fsp_infoheader.h
>
> The rename of fsp_infoheader.h should be in the next patch, to keep
> the bisectability.
>
> I will fix it when applying.
>
> > > diff --git a/arch/x86/include/asm/fsp1/fsp_support.h b/arch/x86/include/asm/fsp1/fsp_support.h
> > > index de3b1936be8..2f1c5fbb546 100644
> > > --- a/arch/x86/include/asm/fsp1/fsp_support.h
> > > +++ b/arch/x86/include/asm/fsp1/fsp_support.h
> > > @@ -8,6 +8,7 @@
> > >  #define __FSP_SUPPORT_H__
> > >
> > >  #include <asm/fsp/fsp_fv.h>
> > > +#include <asm/fsp/fsp_hob.h>
> > >  #include <asm/fsp/fsp_types.h>
> > >  #include "fsp_hob.h"
> >
> > This line should be dropped. I will fix it when applying.
> >

Fixed all the issues, and

applied to u-boot-x86/next, thanks!

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

* [U-Boot] [PATCH v3 08/10] x86: Move fsp_infoheader.h to the generic fsp directory
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 08/10] x86: Move fsp_infoheader.h " Simon Glass
@ 2019-10-02 11:00   ` Bin Meng
  0 siblings, 0 replies; 26+ messages in thread
From: Bin Meng @ 2019-10-02 11:00 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
>
> This header file is the same for FSP v1 and v2. Move it into the general
> fsp directory.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/x86/include/asm/fsp1/fsp_support.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

applied to u-boot-x86/next, thanks!

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

* [U-Boot] [PATCH v3 09/10] x86: Move fsp_bootmode.h to the generic fsp directory
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 09/10] x86: Move fsp_bootmode.h " Simon Glass
@ 2019-10-02 11:00   ` Bin Meng
  0 siblings, 0 replies; 26+ messages in thread
From: Bin Meng @ 2019-10-02 11:00 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
>
> This header file is the same for FSP v1 and v2, although there may be
> some additions to come. Move it into the generic fsp directory.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/x86/include/asm/{fsp1 => fsp}/fsp_bootmode.h | 0
>  arch/x86/include/asm/fsp1/fsp_support.h           | 3 +--
>  2 files changed, 1 insertion(+), 2 deletions(-)
>  rename arch/x86/include/asm/{fsp1 => fsp}/fsp_bootmode.h (100%)
>

applied to u-boot-x86/next, thanks!

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

* [U-Boot] [PATCH v3 10/10] x86: Move fsp_ffs.h include to fsp_arch.h
  2019-09-25 14:00 ` [U-Boot] [PATCH v3 10/10] x86: Move fsp_ffs.h include to fsp_arch.h Simon Glass
@ 2019-10-02 11:00   ` Bin Meng
  0 siblings, 0 replies; 26+ messages in thread
From: Bin Meng @ 2019-10-02 11:00 UTC (permalink / raw)
  To: u-boot

On Wed, Sep 25, 2019 at 10:00 PM Simon Glass <sjg@chromium.org> wrote:
>
> This include file is only used for FSP v1. Avoid including it from
> fdt_support.h so we can use the latter with FSP v2.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  arch/x86/include/asm/fsp_arch.h | 1 +
>  1 file changed, 1 insertion(+)
>

applied to u-boot-x86/next, thanks!

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

end of thread, other threads:[~2019-10-02 11:00 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-25 14:00 [U-Boot] [PATCH v3 00/10] x86: Prepare for adding FSP2 code Simon Glass
2019-09-25 14:00 ` [U-Boot] [PATCH v3 01/10] x86: Rename existing FSP code to fsp1 Simon Glass
2019-10-02 10:59   ` Bin Meng
2019-09-25 14:00 ` [U-Boot] [PATCH v3 02/10] x86: Move fsp_azalia.h to the generic fsp directory Simon Glass
2019-10-01 10:59   ` Bin Meng
2019-10-01 17:39     ` Simon Glass
2019-10-01 22:55       ` Bin Meng
2019-10-02 10:59         ` Bin Meng
2019-09-25 14:00 ` [U-Boot] [PATCH v3 03/10] x86: Create a new fsp_arch.h header Simon Glass
2019-10-02 10:59   ` Bin Meng
2019-09-25 14:00 ` [U-Boot] [PATCH v3 04/10] x86: Move fsp_api.h inclusion out of fsp_support.h Simon Glass
2019-10-02 10:59   ` Bin Meng
2019-09-25 14:00 ` [U-Boot] [PATCH v3 05/10] x86: Move fsp_types.h to the generic fsp directory Simon Glass
2019-10-02 10:59   ` Bin Meng
2019-09-25 14:00 ` [U-Boot] [PATCH v3 06/10] x86: Move fsp_fv.h " Simon Glass
2019-10-02 10:59   ` Bin Meng
2019-09-25 14:00 ` [U-Boot] [PATCH v3 07/10] x86: Move fsp_hob.h " Simon Glass
2019-10-02  0:00   ` Bin Meng
2019-10-02  0:05     ` Bin Meng
2019-10-02 11:00       ` Bin Meng
2019-09-25 14:00 ` [U-Boot] [PATCH v3 08/10] x86: Move fsp_infoheader.h " Simon Glass
2019-10-02 11:00   ` Bin Meng
2019-09-25 14:00 ` [U-Boot] [PATCH v3 09/10] x86: Move fsp_bootmode.h " Simon Glass
2019-10-02 11:00   ` Bin Meng
2019-09-25 14:00 ` [U-Boot] [PATCH v3 10/10] x86: Move fsp_ffs.h include to fsp_arch.h Simon Glass
2019-10-02 11:00   ` 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.