drivers/intel/fsp2_0: Add display HOB support
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 Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/15851 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
*/
|
||||
void fsp_debug_before_memory_init(fsp_memory_init_fn memory_init,
|
||||
const struct FSPM_UPD *fspm_old_upd,
|
||||
const struct FSPM_UPD *fspm_new_upd, void **hob_list_ptr)
|
||||
const struct FSPM_UPD *fspm_new_upd)
|
||||
{
|
||||
/* Display the MTRRs */
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_MTRRS))
|
||||
@ -34,15 +34,18 @@ void fsp_debug_before_memory_init(fsp_memory_init_fn memory_init,
|
||||
return;
|
||||
printk(BIOS_DEBUG, "Calling FspMemoryInit: 0x%p\n", memory_init);
|
||||
printk(BIOS_SPEW, "\t0x%p: raminit_upd\n", fspm_new_upd);
|
||||
printk(BIOS_SPEW, "\t0x%p: &hob_list_ptr\n", hob_list_ptr);
|
||||
printk(BIOS_SPEW, "\t0x%p: &hob_list_ptr\n", fsp_get_hob_list_ptr());
|
||||
}
|
||||
|
||||
void fsp_debug_after_memory_init(enum fsp_status status,
|
||||
const struct hob_header *hob_list_ptr)
|
||||
void fsp_debug_after_memory_init(enum fsp_status status)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_FSP_CALLS_AND_STATUS))
|
||||
printk(BIOS_DEBUG, "FspMemoryInit returned 0x%08x\n", status);
|
||||
|
||||
/* Display the HOBs */
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_HOBS))
|
||||
fsp_display_hobs();
|
||||
|
||||
/* Display the MTRRs */
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_MTRRS))
|
||||
soc_display_mtrrs();
|
||||
@ -76,6 +79,10 @@ void fsp_debug_after_silicon_init(enum fsp_status status)
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_FSP_CALLS_AND_STATUS))
|
||||
printk(BIOS_SPEW, "FspSiliconInit returned 0x%08x\n", status);
|
||||
|
||||
/* Display the HOBs */
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_HOBS))
|
||||
fsp_display_hobs();
|
||||
|
||||
/* Display the MTRRs */
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_MTRRS))
|
||||
soc_display_mtrrs();
|
||||
@ -102,6 +109,10 @@ void fsp_debug_after_notify(enum fsp_status status)
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_FSP_CALLS_AND_STATUS))
|
||||
printk(BIOS_SPEW, "FspNotify returned 0x%08x\n", status);
|
||||
|
||||
/* Display the HOBs */
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_HOBS))
|
||||
fsp_display_hobs();
|
||||
|
||||
/* Display the MTRRs */
|
||||
if (IS_ENABLED(CONFIG_DISPLAY_MTRRS))
|
||||
soc_display_mtrrs();
|
||||
|
Reference in New Issue
Block a user