Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/23871
Change subject: drivers/intel/fsp2_0: Fix build error while DISPLAY_HOBS is selected ......................................................................
drivers/intel/fsp2_0: Fix build error while DISPLAY_HOBS is selected
This patch fixes brokenness issues in coreboot with CONFIG_DISPLAY_HOBs config selection due to recent UDK2017 package changes.
TEST=Build and boot UDK2017 platforms with DISPLAY_HOBS select.
Change-Id: I5c779c86870c62253d64c6af456bf017553e269c Signed-off-by: Subrata Banik subrata.banik@intel.com --- M src/drivers/intel/fsp2_0/hob_display.c M src/drivers/intel/fsp2_0/include/fsp/util.h 2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/23871/1
diff --git a/src/drivers/intel/fsp2_0/hob_display.c b/src/drivers/intel/fsp2_0/hob_display.c index 67e79b4..d9838e9 100644 --- a/src/drivers/intel/fsp2_0/hob_display.c +++ b/src/drivers/intel/fsp2_0/hob_display.c @@ -89,7 +89,7 @@ { tseg_guid, "TSEG" }, };
-static const char *resource_name(enum resource_type type) +static const char *resource_name(uint32_t type) { if (type >= ARRAY_SIZE(resource_names)) return "UNKNOWN"; diff --git a/src/drivers/intel/fsp2_0/include/fsp/util.h b/src/drivers/intel/fsp2_0/include/fsp/util.h index e7778ec..6d09875 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/util.h +++ b/src/drivers/intel/fsp2_0/include/fsp/util.h @@ -20,6 +20,7 @@ #include <fsp/api.h> #include <fsp/info_header.h> #include <memrange.h> +#include <Pi/PiHob.h>
struct hob_header { uint16_t type;