[Feature][ZXW-130]merge P50U02 version

Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No

Change-Id: I4f29ec5bb7c59385f23738d2b7ca84e67c100f69
diff --git a/boot/common/src/uboot/include/secure_verify.h b/boot/common/src/uboot/include/secure_verify.h
old mode 100644
new mode 100755
index 34c2ce5..2132a03
--- a/boot/common/src/uboot/include/secure_verify.h
+++ b/boot/common/src/uboot/include/secure_verify.h
@@ -51,6 +51,13 @@
 	u32		dev_id[3];	
 } efuse_struct;
 
+typedef volatile struct
+{
+	u32		secure_flag;
+	u32		puk_hash[8];
+	u32		dev_id[3];	
+} otp_struct;
+
 typedef struct
 {
 	u32 uiPubKeyRsaE[32];
@@ -58,9 +65,24 @@
 	u32 uiHashY[32];
 } sImageHeader;
 
+typedef struct
+{
+	uint16_t   signtype;
+    uint16_t   hashtype;   
+	uint32_t   uiPubKeyRsaELen;
+	uint32_t   uiPubKeyRsaNLen;
+	uint8_t    uiPubKeyRsaE[4];
+	uint8_t    uiPubKeyRsaN[256];
+	uint8_t    reserve[112]; //380 bytes
+    uint8_t    uiHashY[256];    //256 bytes
+} sImageNewHeader;
+
+extern otp_struct otpInfo;
+
 static void get_efuse_data(void);
 static u32 SMALL2BIG(u32 *puiArrIn, u32 *puiArrOut, u32 uiLen);
 u8 secure_verify(u32 addr);
+u8 rootfs_secure_verify(u32 addr);
 static u8 data_cmp_word(u32* src, u32* dst, u32 cnt);
 int efuse_init(void);
 void efuse_get_devinfo(efuse_struct *efuse_info);