x86: Move fsp_infoheader.h to the generic fsp directory
authorSimon Glass <sjg@chromium.org>
Wed, 2 Oct 2019 00:26:41 +0000 (08:26 +0800)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:50:45 +0000 (13:50 +0800)
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>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
[bmeng: move rename of fsp_infoheader.h from previous patch to this one]
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/fsp/fsp_infoheader.h [new file with mode: 0644]
arch/x86/include/asm/fsp1/fsp_infoheader.h [deleted file]
arch/x86/include/asm/fsp1/fsp_support.h

diff --git a/arch/x86/include/asm/fsp/fsp_infoheader.h b/arch/x86/include/asm/fsp/fsp_infoheader.h
new file mode 100644 (file)
index 0000000..86f7801
--- /dev/null
@@ -0,0 +1,38 @@
+/* SPDX-License-Identifier: Intel */
+/*
+ * Copyright (C) 2013, Intel Corporation
+ * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
+ */
+
+#ifndef _FSP_HEADER_H_
+#define _FSP_HEADER_H_
+
+#define FSP_HEADER_OFF 0x94    /* Fixed FSP header offset in the FSP image */
+
+struct __packed fsp_header {
+       u32     sign;                   /* 'FSPH' */
+       u32     hdr_len;                /* header length */
+       u8      reserved1[3];
+       u8      hdr_rev;                /* header rev */
+       u32     img_rev;                /* image rev */
+       char    img_id[8];              /* signature string */
+       u32     img_size;               /* image size */
+       u32     img_base;               /* image base */
+       u32     img_attr;               /* image attribute */
+       u32     cfg_region_off;         /* configuration region offset */
+       u32     cfg_region_size;        /* configuration region size */
+       u32     api_num;                /* number of API entries */
+       u32     fsp_tempram_init;       /* tempram_init offset */
+       u32     fsp_init;               /* fsp_init offset */
+       u32     fsp_notify;             /* fsp_notify offset */
+       u32     fsp_mem_init;           /* fsp_mem_init offset */
+       u32     fsp_tempram_exit;       /* fsp_tempram_exit offset */
+       u32     fsp_silicon_init;       /* fsp_silicon_init offset */
+};
+
+#define FSP_HEADER_REVISION_1          1
+#define FSP_HEADER_REVISION_2          2
+
+#define FSP_ATTR_GRAPHICS_SUPPORT      (1 << 0)
+
+#endif
diff --git a/arch/x86/include/asm/fsp1/fsp_infoheader.h b/arch/x86/include/asm/fsp1/fsp_infoheader.h
deleted file mode 100644 (file)
index 86f7801..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* SPDX-License-Identifier: Intel */
-/*
- * Copyright (C) 2013, Intel Corporation
- * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
- */
-
-#ifndef _FSP_HEADER_H_
-#define _FSP_HEADER_H_
-
-#define FSP_HEADER_OFF 0x94    /* Fixed FSP header offset in the FSP image */
-
-struct __packed fsp_header {
-       u32     sign;                   /* 'FSPH' */
-       u32     hdr_len;                /* header length */
-       u8      reserved1[3];
-       u8      hdr_rev;                /* header rev */
-       u32     img_rev;                /* image rev */
-       char    img_id[8];              /* signature string */
-       u32     img_size;               /* image size */
-       u32     img_base;               /* image base */
-       u32     img_attr;               /* image attribute */
-       u32     cfg_region_off;         /* configuration region offset */
-       u32     cfg_region_size;        /* configuration region size */
-       u32     api_num;                /* number of API entries */
-       u32     fsp_tempram_init;       /* tempram_init offset */
-       u32     fsp_init;               /* fsp_init offset */
-       u32     fsp_notify;             /* fsp_notify offset */
-       u32     fsp_mem_init;           /* fsp_mem_init offset */
-       u32     fsp_tempram_exit;       /* fsp_tempram_exit offset */
-       u32     fsp_silicon_init;       /* fsp_silicon_init offset */
-};
-
-#define FSP_HEADER_REVISION_1          1
-#define FSP_HEADER_REVISION_2          2
-
-#define FSP_ATTR_GRAPHICS_SUPPORT      (1 << 0)
-
-#endif
index e204045482d0c89d189b106b33c390fdaa31d84d..ed4335ed2956422a6e24babcacc240b9ab18c410 100644 (file)
@@ -9,9 +9,9 @@
 
 #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_ffs.h"
-#include "fsp_infoheader.h"
 #include "fsp_bootmode.h"
 #include <asm/fsp_arch.h>
 #include <asm/fsp/fsp_azalia.h>