Implement get Serial Number

Root cause:N/A

How to fix:N/A

Feature:implement get Serial Number from prodinfo partition

Change-Id: Iab230a16d19ded77115b9197357b91036d148b96
RiskArea:PCBA
diff --git a/app/aboot/fastboot.c b/app/aboot/fastboot.c
old mode 100644
new mode 100755
index cac7f8f..6aea42a
--- a/app/aboot/fastboot.c
+++ b/app/aboot/fastboot.c
@@ -38,6 +38,9 @@
 #include <dev/udc.h>
 #include "fastboot.h"
 #include <err.h>
+/*[20200605][TracyChui] Implement get Serial Number start*/
+#include <devinfo.h>
+/*[20200605][TracyChui] Implement get Serial Number end*/
 
 #ifdef USB30_SUPPORT
 #include <usb30_udc.h>
@@ -638,7 +641,13 @@
 
 int fastboot_init(void *base, unsigned size)
 {
+/*[20200605][TracyChui] Implement get Serial Number start*/
+#if defined(ENABLE_PRODINFO_ACCESS)
+	char sn_buf[PRODINFO_MAX_ISN_LEN + 1];
+#else
 	char sn_buf[13];
+#endif
+/*[20200605][TracyChui] Implement get Serial Number end*/
 	thread_t *thr;
 	dprintf(INFO, "fastboot_init()\n");