summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2018-01-22 16:30:56 +0530
committerSubrata Banik <subrata.banik@intel.com>2018-01-31 05:56:36 +0000
commit491728f1d3432286c91b9d564f694aa85d7cd3d1 (patch)
tree55191f2a9932f665f19885b519ec98d1534fa652
parentdb2aba9854cb9897a66ed1068eeae1eeb892a3fe (diff)
downloadcoreboot-491728f1d3432286c91b9d564f694aa85d7cd3d1.tar.xz
drivers/intel/fsp2_0: Make use of Resource Type macro from EDK code
Users are getting build error due to duplicate macro definitions of same resource type between fsp driver code and UEFI headers. Hence this patch ensures to refer a single source location for macro definitions to avoid compilation error. Change-Id: If022eb29550a9310b095bff6130b02fb0a25ef7a Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/23356 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
-rw-r--r--src/drivers/intel/fsp2_0/include/fsp/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp2_0/include/fsp/util.h b/src/drivers/intel/fsp2_0/include/fsp/util.h
index 6d53fda41f..ecbd7faf92 100644
--- a/src/drivers/intel/fsp2_0/include/fsp/util.h
+++ b/src/drivers/intel/fsp2_0/include/fsp/util.h
@@ -38,6 +38,7 @@ struct hob_resource {
uint64_t length;
} __packed;
+#if CONFIG_UDK_VERSION < CONFIG_UDK_2017_VERSION
enum resource_type {
EFI_RESOURCE_SYSTEM_MEMORY = 0,
EFI_RESOURCE_MEMORY_MAPPED_IO = 1,
@@ -48,6 +49,7 @@ enum resource_type {
EFI_RESOURCE_IO_RESERVED = 6,
EFI_RESOURCE_MAX_MEMORY_TYPE = 7,
};
+#endif
enum hob_type {
HOB_TYPE_HANDOFF = 0x0001,