drivers/intel/fsp2_0: Add display HOB support

Hardware / Coreboot - Lee Leahy [intel.com] - 2 August 2016 23:15 UTC

Add support to display the HOBs returned by FSP:
- Add Kconfig value to enable HOB display
- Move hob_header, hob_resource and uuid_name structures into util.h
- Move hob_type enum into util.h
- Remove static from the debug utility functions
- Add fsp_ prefix to the debug utility functions
- Declare the debug utility functions in debug.h
- Add HOB type name table
- Add more GUID values
- Add new GUID name table for additional GUIDs
- Add routine to convert EDK-II GUID into a name
- Add SOC specific routine to handle unknown GUID types
- Add routine to convert HOB type into a name
- Add SOC specific routine to handle unknown HOB types
- Add routine to display the hobs

TEST=Build and run on Galileo Gen2

Change-Id: I10606d752859fff0f4f08a5ac03ab129b2c96d1f

ac3b0a6 drivers/intel/fsp2_0: Add display HOB support
src/drivers/intel/fsp2_0/Kconfig | 6 +
src/drivers/intel/fsp2_0/Makefile.inc | 2 +
src/drivers/intel/fsp2_0/debug.c | 19 ++-
src/drivers/intel/fsp2_0/graphics.c | 4 +-
src/drivers/intel/fsp2_0/hand_off_block.c | 190 +++++----------------
src/drivers/intel/fsp2_0/hob_display.c | 231 ++++++++++++++++++++++++++
src/drivers/intel/fsp2_0/include/fsp/debug.h | 19 ++-
src/drivers/intel/fsp2_0/include/fsp/util.h | 52 ++++--
src/drivers/intel/fsp2_0/memory_init.c | 21 +--
9 files changed, 358 insertions(+), 186 deletions(-)

Upstream: review.coreboot.org


  • Share