aboutsummaryrefslogtreecommitdiff
path: root/src/vendorcode/google/chromeos/cr50_enable_update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vendorcode/google/chromeos/cr50_enable_update.c')
-rw-r--r--src/vendorcode/google/chromeos/cr50_enable_update.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vendorcode/google/chromeos/cr50_enable_update.c b/src/vendorcode/google/chromeos/cr50_enable_update.c
index 06416bda76..da9a16d75f 100644
--- a/src/vendorcode/google/chromeos/cr50_enable_update.c
+++ b/src/vendorcode/google/chromeos/cr50_enable_update.c
@@ -21,6 +21,9 @@
#include <security/tpm/tss.h>
#include <vb2_api.h>
#include <security/vboot/vboot_common.h>
+#include <vendorcode/google/chromeos/chromeos.h>
+
+void __weak mainboard_cr50_update_reset(void) {}
static void enable_update(void *unused)
{
@@ -52,6 +55,9 @@ static void enable_update(void *unused)
if (!num_restored_headers)
return;
+ /* Give mainboard a chance to take action */
+ mainboard_cr50_update_reset();
+
elog_add_event(ELOG_TYPE_CR50_UPDATE);
/* clear current post code avoid chatty eventlog on subsequent boot*/