diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2016-07-24 18:21:13 -0700 |
---|---|---|
committer | Lee Leahy <leroy.p.leahy@intel.com> | 2016-08-02 17:15:22 +0200 |
commit | 672df16a493a5ddc933e8634772beedefc369a3d (patch) | |
tree | 11a1b90057550c80e1c5cec18fd15d34fa465d13 /src/drivers/intel/fsp2_0/include/fsp/util.h | |
parent | 48e0792e4ae8d4267dc2d5fb6af3b2c079a4f61f (diff) | |
download | coreboot-672df16a493a5ddc933e8634772beedefc369a3d.tar.xz |
drivers/intel/fsp2_0: Display FSP calls and status
Disable the chatty FSP behavior for normal builds. Use a Kconfig value
to enable the display of the FSP call entry points, the call parameters
and the returned status for MemoryInit, SiliconInit and FspNotify. The
debug code is placed into drivers/intel/fsp2_0/debug.c.
TEST=Build and run on Galileo Gen2
Change-Id: Iacae66f72bc5b4ba1469f53fcce4669726234441
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-on: https://review.coreboot.org/15989
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/intel/fsp2_0/include/fsp/util.h')
-rw-r--r-- | src/drivers/intel/fsp2_0/include/fsp/util.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp2_0/include/fsp/util.h b/src/drivers/intel/fsp2_0/include/fsp/util.h index 01186f76e1..b16a6ec964 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/util.h +++ b/src/drivers/intel/fsp2_0/include/fsp/util.h @@ -15,10 +15,20 @@ #include <boot/coreboot_tables.h> #include <commonlib/region.h> +#include <arch/cpu.h> #include <fsp/api.h> #include <fsp/info_header.h> #include <memrange.h> +struct hob_header { + uint16_t type; + uint16_t length; +} __attribute__((packed)); + +struct fsp_notify_params { + enum fsp_notify_phase phase; +}; + /* * Hand-off-block handling functions that depend on CBMEM, and thus can only * be used after cbmem_initialize(). @@ -53,4 +63,12 @@ void fsp_handle_reset(enum fsp_status status); /* SoC/chipset must provide this to handle platform-specific reset codes */ void chipset_handle_reset(enum fsp_status status); +typedef asmlinkage enum fsp_status (*fsp_memory_init_fn) + (void *raminit_upd, void **hob_list); +typedef asmlinkage enum fsp_status (*fsp_silicon_init_fn) + (void *silicon_upd); +typedef asmlinkage enum fsp_status (*fsp_notify_fn) + (struct fsp_notify_params *); +#include <fsp/debug.h> + #endif /* _FSP2_0_UTIL_H_ */ |