summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/skylake/fsp_reset.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/soc/intel/skylake/fsp_reset.c b/src/soc/intel/skylake/fsp_reset.c
index 4751872a47..f25f1572f5 100644
--- a/src/soc/intel/skylake/fsp_reset.c
+++ b/src/soc/intel/skylake/fsp_reset.c
@@ -13,7 +13,7 @@
* GNU General Public License for more details.
*/
#include <bootstate.h>
-#include <vendorcode/google/chromeos/vboot_handoff.h>
+#include <vendorcode/google/chromeos/vboot_common.h>
static int is_recovery; /* flag to identify recovery mode */
@@ -35,8 +35,10 @@ static void set_recovery_request(void *unused)
* Set recovery flag during Recovery Mode Silicon Init
* & store recovery request into VBNV
*/
- if (is_recovery)
- set_recovery_mode_into_vbnv(vboot_recovery_reason());
+ if (is_recovery) {
+ int reason = vboot_handoff_get_recovery_reason();
+ set_recovery_mode_into_vbnv(reason);
+ }
}