summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2016-07-12 10:39:13 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2016-07-26 23:23:31 +0200
commitaa3e8a8124fe82aa13eb828b0da69966e4d03cd1 (patch)
tree61d01a99cf8a93e43d4bf44daf678fa53dbb0a50
parentc7dfbe26fd2baf373a439fa5edfe23da9a25c8b7 (diff)
downloadcoreboot-aa3e8a8124fe82aa13eb828b0da69966e4d03cd1.tar.xz
drivers/intel/fsp2_0/header_util: Convert UPD headers
Convert the FSP 2.0 UPD headers from typedef to struct: * FSP_UPD_HEADER * FSPM_ARCH_UPD TEST=Build and run on Galileo Gen2 Change-Id: Iab241ea07c955e95ff988a4a30103d2a112179b6 Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/15856 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--src/drivers/intel/fsp2_0/header_util/fspupdvpd.spatch11
-rwxr-xr-x[-rw-r--r--]src/drivers/intel/fsp2_0/header_util/fspupdvpd_sanitize.sh0
2 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp2_0/header_util/fspupdvpd.spatch b/src/drivers/intel/fsp2_0/header_util/fspupdvpd.spatch
index d6bc820c48..fc95f63a9f 100644
--- a/src/drivers/intel/fsp2_0/header_util/fspupdvpd.spatch
+++ b/src/drivers/intel/fsp2_0/header_util/fspupdvpd.spatch
@@ -38,6 +38,17 @@ i;
@@
coccinelle.i = t.rstrip('_t')
+@ convert_FSP_UPD_HEADER @
+typedef FSP_UPD_HEADER;
+@@
+- FSP_UPD_HEADER
++ struct FSP_UPD_HEADER
+
+@ convert_FSPM_ARCH_UPD @
+typedef FSPM_ARCH_UPD;
+@@
+- FSPM_ARCH_UPD
++ struct FSPM_ARCH_UPD
@ convert_named_struct_decls @
type named_struct.t;
diff --git a/src/drivers/intel/fsp2_0/header_util/fspupdvpd_sanitize.sh b/src/drivers/intel/fsp2_0/header_util/fspupdvpd_sanitize.sh
index 2b500539b7..2b500539b7 100644..100755
--- a/src/drivers/intel/fsp2_0/header_util/fspupdvpd_sanitize.sh
+++ b/src/drivers/intel/fsp2_0/header_util/fspupdvpd_sanitize.sh