platform: msm8226: Modify MSM_SHARED_BASE based on platform subtype.

Add the MSM_SHARED_BASE address for the new QVGA platform subtype.
Also implement the api which returns MSM_SHARED_BASE based on platform
subtype.

Change-Id: I89cbc6415c030123494fce703a1fa6474ea441ab
diff --git a/platform/msm8226/include/platform/iomap.h b/platform/msm8226/include/platform/iomap.h
index c62b7c5..5cb3770 100644
--- a/platform/msm8226/include/platform/iomap.h
+++ b/platform/msm8226/include/platform/iomap.h
@@ -35,6 +35,7 @@
 #define SDRAM_START_ADDR            0x00000000
 
 #define MSM_SHARED_BASE             0x0FA00000
+#define MSM_DYNAMIC_SHARED_BASE     0xFE802FF8
 
 #define APPS_SS_BASE                0xF9000000
 
diff --git a/platform/msm8226/platform.c b/platform/msm8226/platform.c
index 379e350..c316ab3 100644
--- a/platform/msm8226/platform.c
+++ b/platform/msm8226/platform.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -142,3 +142,8 @@
 		}
 	}
 }
+
+uint32_t platform_get_smem_base_addr()
+{
+	return (uint32_t)(readl(MSM_DYNAMIC_SHARED_BASE));
+}