sysupgrade: Add support to process SBL for ipq806x nand boot

This change adds the correct Sbl_Hdr instead of Mbn_Hdr, since
sbl header is different than normal Mbn_Hdr, and adds the sbl
header size as 80.
SBL in nand starts with preamble before the sbl header, so here
it adds the preamble for header start address as well as
src, sig and cert offset values.

Change-Id: I9a56d7b4a51890b74a5ee5fe3047a38801d23803
Signed-off-by: Ram Chandra Jangir <rjangir@codeaurora.org>
diff --git a/tools/sysupgrade.h b/tools/sysupgrade.h
index 1e53ff8..3c158d7 100644
--- a/tools/sysupgrade.h
+++ b/tools/sysupgrade.h
@@ -82,6 +82,29 @@
 	__be32  hdr_crc;
 };
 
+typedef struct {
+	uint32_t  codeword;
+	uint32_t  magic;
+	uint32_t  RESERVED_0;
+	uint32_t  RESERVED_1;
+	uint32_t  RESERVED_2;
+	uint32_t  image_src;
+	uint8_t  *image_dest_ptr;
+	uint32_t  image_size;
+	uint32_t  code_size;
+	uint8_t  *sig_ptr;
+	uint32_t  sig_size;
+	uint8_t  *cert_ptr;
+	uint32_t  cert_size;
+	uint32_t  root_cert_sel;
+	uint32_t  num_root_certs;
+	uint32_t  RESERVED_5;
+	uint32_t  RESERVED_6;
+	uint32_t  RESERVED_7;
+	uint32_t  RESERVED_8;
+	uint32_t  RESERVED_9;
+} Sbl_Hdr;
+
 int get_sections(void);
 int is_authentication_check_enabled(void);
 int get_local_image_version(struct image_section *);