[Feature][T8TSK-251] add get security boot flag API in misc
Only Configure:No
Affected branch:GSW3.0-No-Connman
Affected module:misc
Is it affected on both ZXIC and MTK: only MTK
Self-test: Yes
Doc Update: Need
Change-Id: I873d746ab817a5f88fb27372aeb60b79cdfd2b66
diff --git a/src/lynq/lib/liblynq-misc/include/lynq_misc.h b/src/lynq/lib/liblynq-misc/include/lynq_misc.h
new file mode 100755
index 0000000..4207191
--- /dev/null
+++ b/src/lynq/lib/liblynq-misc/include/lynq_misc.h
@@ -0,0 +1,28 @@
+/**
+ * @file misc.h
+ * @author you.chen
+ * @brief
+ * @version 1.0
+ * @date 2023-08-21
+ *
+ * @copyright Copyright (c) 2023
+ *
+ */
+#ifndef __LYNQ_MISC_H__
+#define __LYNQ_MISC_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief lynq_get_security_boot_flag get the flag in efuse
+ * @param enable_flag (output param, 1 for enabled)
+ * @return 0 success, -1 some error occur
+ */
+int lynq_get_security_boot_flag(int * enabled_flag);
+
+#ifdef __cplusplus
+}
+#endif
+#endif //#ifndef __LYNQ_MISC_H__