summaryrefslogtreecommitdiffstats
path: root/src/drivers/intel/fsp2_0/debug.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2016-07-27 07:40:25 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2016-08-03 06:15:47 +0200
commitac3b0a6e9f78cf7c4f2b32a6f97a42e7528aedd6 (patch)
treef3ec1ae156213d847e09c2b4fa61e482a607e442 /src/drivers/intel/fsp2_0/debug.c
parente6f2f74b2977fd57f1133fdad182bb718e8b8ddc (diff)
downloadcoreboot-ac3b0a6e9f78cf7c4f2b32a6f97a42e7528aedd6.tar.gz
coreboot-ac3b0a6e9f78cf7c4f2b32a6f97a42e7528aedd6.tar.bz2
coreboot-ac3b0a6e9f78cf7c4f2b32a6f97a42e7528aedd6.zip
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>
Diffstat (limited to 'src/drivers/intel/fsp2_0/debug.c')
-rw-r--r--src/drivers/intel/fsp2_0/debug.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/drivers/intel/fsp2_0/debug.c b/src/drivers/intel/fsp2_0/debug.c
index b34910b6fe90..ffc9d4fc2491 100644
--- a/src/drivers/intel/fsp2_0/debug.c
+++ b/src/drivers/intel/fsp2_0/debug.c
@@ -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();