platform: msm8909: Increase TZ secure app region size to 2 MB

Increase the TZ secure app region size to 2 MB depending
enable/disable of the flag QSEECOM_SECAPP_REGION_2MB in
AndroidBoot.mk.

Change-Id: I779099b9995ef6e1e1fdfb8bf898b30702f2152c
diff --git a/platform/msm8909/include/platform/iomap.h b/platform/msm8909/include/platform/iomap.h
index f860274..55312e4 100755
--- a/platform/msm8909/include/platform/iomap.h
+++ b/platform/msm8909/include/platform/iomap.h
@@ -211,8 +211,13 @@
 #define RPMB_SND_RCV_BUF_SZ         0x1
 
 /* QSEECOM: Secure app region notification */
-#define APP_REGION_ADDR 0x87b00000
-#define APP_REGION_SIZE 0x100000
+#if QSEECOM_SECAPP_REGION_2MB
+  #define APP_REGION_ADDR 0x87a00000
+  #define APP_REGION_SIZE 0x200000
+#else
+  #define APP_REGION_ADDR 0x87b00000
+  #define APP_REGION_SIZE 0x100000
+#endif
 
 
 /* MDSS */
diff --git a/project/msm8909.mk b/project/msm8909.mk
index 07815f2..30cf2d9 100644
--- a/project/msm8909.mk
+++ b/project/msm8909.mk
@@ -109,5 +109,10 @@
 DEFINES += FBCON_DISPLAY_MSG=1
 endif
 
+#Increase TZ apps region to 2 MB due to KM 3.0 support
+ifeq ($(QSEECOM_SECAPP_REGION_2MB),1)
+ DEFINES += QSEECOM_SECAPP_REGION_2MB=1
+endif
+
 #enable battery voltage check
 DEFINES += CHECK_BAT_VOLTAGE=1