platform: msm8952: Add TZ addr and size support for QM215
Memory map have been updated for QM215, so add new TZ addr and size
for QM215.
Change-Id: I86af8e11e42763d6f36f835ccd7fc50105139ae3
diff --git a/platform/msm8952/include/platform/iomap.h b/platform/msm8952/include/platform/iomap.h
index eea0d80..cc17e5b 100644
--- a/platform/msm8952/include/platform/iomap.h
+++ b/platform/msm8952/include/platform/iomap.h
@@ -197,6 +197,8 @@
#define APP_REGION_SIZE_8952 0x500000
#define APP_REGION_ADDR_8937 0x85B00000
#define APP_REGION_SIZE_8937 0x800000
+#define APP_REGION_ADDR_215 0x86000000
+#define APP_REGION_SIZE_215 0x300000
/* MDSS */
#define MIPI_DSI_BASE (0x1A98000)
diff --git a/platform/msm8952/platform.c b/platform/msm8952/platform.c
index 325e103..8a25d51 100644
--- a/platform/msm8952/platform.c
+++ b/platform/msm8952/platform.c
@@ -371,9 +371,10 @@
uint32_t platform_get_tz_app_add()
{
if(platform_is_msm8937() || platform_is_msm8917() ||
- platform_is_sdm429() || platform_is_sdm429w() || platform_is_sda429w() || platform_is_sdm439() ||
- platform_is_qm215())
+ platform_is_sdm429() || platform_is_sdm429w() || platform_is_sda429w() || platform_is_sdm439())
return APP_REGION_ADDR_8937;
+ else if(platform_is_qm215())
+ return APP_REGION_ADDR_215;
else
return APP_REGION_ADDR_8952;
}
@@ -381,9 +382,10 @@
uint32_t platform_get_tz_app_size()
{
if(platform_is_msm8937() || platform_is_msm8917() ||
- platform_is_sdm429() || platform_is_sdm429w() || platform_is_sda429w() || platform_is_sdm439() ||
- platform_is_qm215())
+ platform_is_sdm429() || platform_is_sdm429w() || platform_is_sda429w() || platform_is_sdm439())
return APP_REGION_SIZE_8937;
+ else if(platform_is_qm215())
+ return APP_REGION_SIZE_215;
else
return APP_REGION_SIZE_8952;
}