diff options
author | Andrey Petrov <andrey.petrov@intel.com> | 2016-06-22 19:22:30 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-06-24 20:37:41 +0200 |
commit | 901e43c90473e4acf950204abd55f0eb99bfee5b (patch) | |
tree | 52afda921483219af21621bc70b20021ac9f1bb6 /src/drivers/intel/fsp2_0/include/fsp | |
parent | 3dbea29ee65c99ae09690765f20869b46464e66a (diff) | |
download | coreboot-901e43c90473e4acf950204abd55f0eb99bfee5b.tar.xz |
drivers/intel/fsp2_0: Add simple reset handler
Any FSP API call may request a reset. This is indicated in API function
return code. Add trivial reset handler code.
BUG=chrome-os-partner:54149
BRANCH=none
TEST=none
Change-Id: Ieb5e2d52ffdaf3c3ed416603f6dbb4f9c25a1a7b
Signed-off-by: Andrey Petrov <andrey.petrov@intel.com>
Reviewed-on: https://review.coreboot.org/15334
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/util.h | 6 |
1 files changed, 6 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 d9d953940a..d546c11fac 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/util.h +++ b/src/drivers/intel/fsp2_0/include/fsp/util.h @@ -14,6 +14,7 @@ #define _FSP2_0_UTIL_H_ #include <boot/coreboot_tables.h> +#include <fsp/api.h> #include <fsp/info_header.h> #include <memrange.h> @@ -39,4 +40,9 @@ enum cb_err fsp_load_binary(struct fsp_header *hdr, const char *name, /* Load a vbt.bin file for graphics. Returns 0 if a valid VBT is not found. */ uintptr_t fsp_load_vbt(void); +/* Trivial handling of reset exit statuses */ +void fsp_handle_reset(enum fsp_status status); +/* Returns true if the non-success status is a reset request */ +bool fsp_reset_requested(enum fsp_status status); + #endif /* _FSP2_0_UTIL_H_ */ |