report successful startup to the platform am: ae8d044cd1
am: 40e9f967e4

Change-Id: Id4d74b2f67d4a6ad6902b5979ca9c18ab6fac7f6
diff --git a/Startup.c b/Startup.c
index 8759e52..54df25b 100644
--- a/Startup.c
+++ b/Startup.c
@@ -163,5 +163,8 @@
    // The H-CRTM state no longer matters
    g_DrtmPreStartup = FALSE;
 
+   if (startup == SU_RESET)
+       _plat__ResetCallback();
+
    return TPM_RC_SUCCESS;
 }
diff --git a/include/tpm2/Platform.h b/include/tpm2/Platform.h
index f7bcbcd..4779594 100644
--- a/include/tpm2/Platform.h
+++ b/include/tpm2/Platform.h
@@ -384,6 +384,12 @@
       uint32_t          *fw2
 );
 
+// A function to call after every successful SU_RESET TPM2_Startup.
+LIB_EXPORT void
+_plat__ResetCallback(
+    void
+);
+
 int uart_printf(const char *format, ...);
 #define ecprintf(format, args...) uart_printf(format, ## args);