target: msm8953: Add new API for LE VERIFIED_BOOT
Add new API for LE VERIFIED_BOOT to provide the status
whether its enabled or not. As of now APQ8053 is only
added.
Change-Id: I7dafe1dca5bf64e5422b9c004f259f22c34ac958
diff --git a/include/platform.h b/include/platform.h
index 292cd1a..6965c5a 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -90,4 +90,5 @@
uint64_t platform_get_ddr_start();
bool platform_is_glink_enabled();
bool platform_is_mdm9206();
+int is_vb_le_enabled();
#endif
diff --git a/target/init.c b/target/init.c
index b4696f1..06be1f0 100644
--- a/target/init.c
+++ b/target/init.c
@@ -281,6 +281,26 @@
return ret;
}
+#if VERIFIED_BOOT_LE
+int verified_boot_le = 1;
+#else
+int verified_boot_le = 0;
+#endif
+
+int is_vb_le_enabled(void)
+{
+ uint32_t platform = board_platform_id();
+
+ switch(platform)
+ {
+ case APQ8053:
+ return verified_boot_le;
+ default:
+ break;
+ }
+ return 0;
+}
+
#if PON_VIB_SUPPORT
void get_vibration_type(struct qpnp_hap *config)
{