]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Move common FSP code into a common location
authorSimon Glass <sjg@chromium.org>
Wed, 28 Jan 2015 05:13:36 +0000 (22:13 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 6 Feb 2015 05:16:43 +0000 (22:16 -0700)
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
18 files changed:
arch/x86/cpu/queensbay/Makefile
arch/x86/cpu/queensbay/fsp_configs.c
arch/x86/cpu/queensbay/tnc.c
arch/x86/cpu/queensbay/tnc_dram.c
arch/x86/cpu/queensbay/tnc_pci.c
arch/x86/include/asm/fsp/fsp_api.h [moved from arch/x86/include/asm/arch-queensbay/fsp/fsp_api.h with 100% similarity]
arch/x86/include/asm/fsp/fsp_bootmode.h [moved from arch/x86/include/asm/arch-queensbay/fsp/fsp_bootmode.h with 100% similarity]
arch/x86/include/asm/fsp/fsp_ffs.h [moved from arch/x86/include/asm/arch-queensbay/fsp/fsp_ffs.h with 100% similarity]
arch/x86/include/asm/fsp/fsp_fv.h [moved from arch/x86/include/asm/arch-queensbay/fsp/fsp_fv.h with 100% similarity]
arch/x86/include/asm/fsp/fsp_hob.h [moved from arch/x86/include/asm/arch-queensbay/fsp/fsp_hob.h with 100% similarity]
arch/x86/include/asm/fsp/fsp_infoheader.h [moved from arch/x86/include/asm/arch-queensbay/fsp/fsp_infoheader.h with 100% similarity]
arch/x86/include/asm/fsp/fsp_platform.h [moved from arch/x86/include/asm/arch-queensbay/fsp/fsp_platform.h with 100% similarity]
arch/x86/include/asm/fsp/fsp_support.h [moved from arch/x86/include/asm/arch-queensbay/fsp/fsp_support.h with 99% similarity]
arch/x86/include/asm/fsp/fsp_types.h [moved from arch/x86/include/asm/arch-queensbay/fsp/fsp_types.h with 100% similarity]
arch/x86/lib/Makefile
arch/x86/lib/cmd_hob.c
arch/x86/lib/fsp/Makefile [new file with mode: 0644]
arch/x86/lib/fsp/fsp_support.c [moved from arch/x86/cpu/queensbay/fsp_support.c with 99% similarity]

index 2c2ec01ed29e406a3f484313e7056251443ecb19..b3e7d879560a5388f224c190b89ae260ad8c7e63 100644 (file)
@@ -5,5 +5,5 @@
 #
 
 obj-y += tnc_car.o tnc_dram.o tnc.o topcliff.o
-obj-y += fsp_configs.o fsp_support.o
+obj-y += fsp_configs.o
 obj-$(CONFIG_PCI) += tnc_pci.o
index af28e457f6e201efe01e3956ab6fae899a438bca..78bc966bbd068a8be618cfd326f66dd9a0a1ab1e 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #include <common.h>
-#include <asm/arch/fsp/fsp_support.h>
+#include <asm/fsp/fsp_support.h>
 
 void update_fsp_upd(struct upd_region *fsp_upd)
 {
index 8637cdca2dd4679f99bb3c56cec784cf03e7bfd1..f9b3bfaada1240de94cf3076b5b5e0105efefe3e 100644 (file)
@@ -9,7 +9,7 @@
 #include <asm/pci.h>
 #include <asm/post.h>
 #include <asm/arch/tnc.h>
-#include <asm/arch/fsp/fsp_support.h>
+#include <asm/fsp/fsp_support.h>
 #include <asm/processor.h>
 
 static void unprotect_spi_flash(void)
index df79a39dd8e1eb901e05d199c8c5f965510e2c10..4c0a7c82ca22923a0874f1bc8ee4c7cecdee6a8c 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #include <common.h>
-#include <asm/arch/fsp/fsp_support.h>
+#include <asm/fsp/fsp_support.h>
 #include <asm/e820.h>
 #include <asm/post.h>
 
index 39bff49c8dbaff72b4fe8b32a2885cbe3acc5a10..9b0b7253134ae0ebdec6cb2bd4a738b77734e6c1 100644 (file)
@@ -7,7 +7,7 @@
 #include <common.h>
 #include <pci.h>
 #include <asm/pci.h>
-#include <asm/arch/fsp/fsp_support.h>
+#include <asm/fsp/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
similarity index 99%
rename from arch/x86/include/asm/arch-queensbay/fsp/fsp_support.h
rename to arch/x86/include/asm/fsp/fsp_support.h
index ebdbd0343509147046fc7c66e34629a2082fea19..6329cfea66075429cd4332e074fedfedcc6c7074 100644 (file)
@@ -16,7 +16,7 @@
 #include "fsp_platform.h"
 #include "fsp_infoheader.h"
 #include "fsp_bootmode.h"
-#include "fsp_vpd.h"
+#include <asm/arch/fsp/fsp_vpd.h>
 
 struct shared_data {
        struct fsp_header       *fsp_hdr;
index 32d7b98fa675095a2adea573300c1227542bd648..c17f7f088bb296868179c55bdd6e6636d82ed177 100644 (file)
@@ -25,6 +25,7 @@ obj-y += string.o
 obj-$(CONFIG_SYS_X86_TSC_TIMER)        += tsc_timer.o
 obj-$(CONFIG_VIDEO_VGA)        += video.o
 obj-$(CONFIG_CMD_ZBOOT)        += zimage.o
+obj-$(CONFIG_HAVE_FSP) += fsp/
 
 extra-$(CONFIG_USE_PRIVATE_LIBGCC) := lib.a
 
index a0ef037da13cd1028cf8b04d8eec60159f704b72..915746a4f9215001ff1feb727d03245c59ac7a45 100644 (file)
@@ -7,7 +7,7 @@
 #include <common.h>
 #include <command.h>
 #include <linux/compiler.h>
-#include <asm/arch/fsp/fsp_support.h>
+#include <asm/fsp/fsp_support.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
diff --git a/arch/x86/lib/fsp/Makefile b/arch/x86/lib/fsp/Makefile
new file mode 100644 (file)
index 0000000..1b9b0e2
--- /dev/null
@@ -0,0 +1,7 @@
+#
+# Copyright (C) 2015 Google, Inc
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y += fsp_support.o
similarity index 99%
rename from arch/x86/cpu/queensbay/fsp_support.c
rename to arch/x86/lib/fsp/fsp_support.c
index aed3e2b300598a554d399938ef56b7a08cad554e..f6ae85a8bad4dda28d8947951f674b1c7eb55e02 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #include <common.h>
-#include <asm/arch/fsp/fsp_support.h>
+#include <asm/fsp/fsp_support.h>
 #include <asm/post.h>
 
 /**