diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2016-07-21 09:48:49 -0700 |
---|---|---|
committer | Lee Leahy <leroy.p.leahy@intel.com> | 2016-08-03 06:14:39 +0200 |
commit | e6f2f74b2977fd57f1133fdad182bb718e8b8ddc (patch) | |
tree | ee0b34e1c5debcf6f05f14b890491dbb106e395f /src/drivers/intel/fsp2_0/include/fsp | |
parent | 0a38b227c802abbc0dbe966860d6e3521d5475ba (diff) |
drivers/intel/fsp2_0: Add UPD display support
Add UPD display support:
* Add a Kconfig value to enable UPD value display
* Add a routine to display a UPD value
* Add a call before MemoryInit to display the UPD parameters
* Add a routine to display the architectural parameters for MemoryInit
* Add a weak routine to display the other UPD parameters for MemoryInit
* Add a call before SiliconInit to display the UPD parameters
* Add a weak routine to display the UPD parameters for SiliconInit
TEST=Build and run on Galileo Gen2.
Change-Id: I35fb8410c0bccf217b32af4b8bbe5ad6671f81f6
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-on: https://review.coreboot.org/15847
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/intel/fsp2_0/include/fsp')
-rw-r--r-- | src/drivers/intel/fsp2_0/include/fsp/debug.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp2_0/include/fsp/debug.h b/src/drivers/intel/fsp2_0/include/fsp/debug.h index 68f1ecbade..21e175478f 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/debug.h +++ b/src/drivers/intel/fsp2_0/include/fsp/debug.h @@ -27,5 +27,19 @@ void fsp_debug_after_silicon_init(enum fsp_status status); void fsp_before_debug_notify(fsp_notify_fn notify, const struct fsp_notify_params *notify_params); void fsp_debug_after_notify(enum fsp_status status); +void fspm_display_upd_values(const struct FSPM_UPD *old, + const struct FSPM_UPD *new); + +/* Callbacks for displaying UPD parameters - place in a separate file + * that is conditionally build with CONFIG_DISPLAY_UPD_DATA. + */ +void soc_display_fspm_upd_params(const struct FSPM_UPD *fspm_old_upd, + const struct FSPM_UPD *fspm_new_upd); +void soc_display_fsps_upd_params(const struct FSPS_UPD *fsps_old_upd, + const struct FSPS_UPD *fsps_new_upd); + +/* FSP debug utility functions */ +void fsp_display_upd_value(const char *name, size_t size, uint64_t old, + uint64_t new); #endif /* _FSP2_0_DEBUG_H_ */ |