]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fsp: Move and rename fsp_types.h file
authorSughosh Ganu <sughosh.ganu@linaro.org>
Mon, 14 Dec 2020 06:22:44 +0000 (11:52 +0530)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 22 Dec 2020 02:19:40 +0000 (10:19 +0800)
The fsp_types.h header file contains macros for building signatures of
different widths. These signature macros are architecture agnostic,
and can be used in all places which use signatures in a data
structure. Move and rename the fsp_types.h under the common include
header.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/include/asm/fsp/fsp_support.h
include/signatures.h [moved from arch/x86/include/asm/fsp/fsp_types.h with 95% similarity]

index 29e511415cdc438ff599519cc1b18d1d8423bc0b..3cd3e4fcf5b49eadbba4d3378027c19e1813385c 100644 (file)
@@ -7,11 +7,12 @@
 #ifndef __FSP_SUPPORT_H__
 #define __FSP_SUPPORT_H__
 
+#include <signatures.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 <asm/fsp_arch.h>
 #include <asm/fsp/fsp_azalia.h>
 
similarity index 95%
rename from arch/x86/include/asm/fsp/fsp_types.h
rename to include/signatures.h
index 3d5b17ecf11918c2a9facc52ce01b917f9d8d122..4042db1e00b917aa1c0c7f3b619d567e13d2b37a 100644 (file)
@@ -4,8 +4,8 @@
  * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
  */
 
-#ifndef __FSP_TYPES_H__
-#define __FSP_TYPES_H__
+#ifndef __SIGNATURES_H__
+#define __SIGNATURES_H__
 
 /**
  * Returns a 16-bit signature built from 2 ASCII characters.
@@ -59,4 +59,4 @@
 #define SIGNATURE_64(A, B, C, D, E, F, G, H)   \
        (SIGNATURE_32(A, B, C, D) | ((u64)(SIGNATURE_32(E, F, G, H)) << 32))
 
-#endif
+#endif /* __SIGNATURES_H__ */