target: msm8226: Add support for new QVGA platform subtype
Add support for new QVGA platform subtype and also modify
MEMBASE, scratch address and size to conform to the
new 128MB memorymap.
CRs-Fixed: 630700
Change-Id: I5dd2cfb5aee431a5aae8fa9ba0474b82417309a6
diff --git a/target/msm8226/init.c b/target/msm8226/init.c
index 71b46c5..9f1a873 100644
--- a/target/msm8226/init.c
+++ b/target/msm8226/init.c
@@ -78,6 +78,11 @@
HW_PLATFORM_SUBTYPE_SKUG = 5,
};
+enum mtp_cdp_subtype
+{
+ HW_PLATFORM_SUBTYPE_QVGA = 4,
+};
+
static uint32_t mmc_pwrctl_base[] =
{ MSM_SDC1_BASE, MSM_SDC2_BASE, MSM_SDC3_BASE };
@@ -280,6 +285,11 @@
*/
}
+bool target_is_cdp_qvga()
+{
+ return board_hardware_subtype() == HW_PLATFORM_SUBTYPE_QVGA;
+}
+
/* Detect the modem type */
void target_baseband_detect(struct board_data *board)
{
@@ -306,6 +316,8 @@
break;
case HW_PLATFORM_SUBTYPE_SKUG:
break;
+ case HW_PLATFORM_SUBTYPE_QVGA:
+ break;
default:
dprintf(CRITICAL, "Platform Subtype : %u is not supported\n", platform_subtype);
ASSERT(0);