msm: 9615: Add SDC2 platform data and GPIO information

Adding the platform data, gpio configuration and initialize
the SDC2 controller in PIO mode.

Signed-off-by: Krishna Konda <kkonda@codeaurora.org>
diff --git a/arch/arm/mach-msm/devices-9615.c b/arch/arm/mach-msm/devices-9615.c
index 3f662d1..c934558 100644
--- a/arch/arm/mach-msm/devices-9615.c
+++ b/arch/arm/mach-msm/devices-9615.c
@@ -256,6 +256,9 @@
 #define MSM_SDC1_BASE         0x12180000
 #define MSM_SDC1_DML_BASE     (MSM_SDC1_BASE + 0x800)
 #define MSM_SDC1_BAM_BASE     (MSM_SDC1_BASE + 0x2000)
+#define MSM_SDC2_BASE         0x12140000
+#define MSM_SDC2_DML_BASE     (MSM_SDC2_BASE + 0x800)
+#define MSM_SDC2_BAM_BASE     (MSM_SDC2_BASE + 0x2000)
 
 static struct resource resources_sdc1[] = {
 	{
@@ -292,6 +295,41 @@
 #endif
 };
 
+static struct resource resources_sdc2[] = {
+	{
+		.name   = "core_mem",
+		.flags  = IORESOURCE_MEM,
+		.start  = MSM_SDC2_BASE,
+		.end    = MSM_SDC2_DML_BASE - 1,
+	},
+	{
+		.name   = "core_irq",
+		.flags  = IORESOURCE_IRQ,
+		.start  = SDC2_IRQ_0,
+		.end    = SDC2_IRQ_0
+	},
+#ifdef CONFIG_MMC_MSM_SPS_SUPPORT
+	{
+		.name   = "sdcc_dml_addr",
+		.start  = MSM_SDC2_DML_BASE,
+		.end    = MSM_SDC2_BAM_BASE - 1,
+		.flags  = IORESOURCE_MEM,
+	},
+	{
+		.name   = "sdcc_bam_addr",
+		.start  = MSM_SDC2_BAM_BASE,
+		.end    = MSM_SDC2_BAM_BASE + (2 * SZ_4K) - 1,
+		.flags  = IORESOURCE_MEM,
+	},
+	{
+		.name   = "sdcc_bam_irq",
+		.start  = SDC2_BAM_IRQ,
+		.end    = SDC2_BAM_IRQ,
+		.flags  = IORESOURCE_IRQ,
+	},
+#endif
+};
+
 struct platform_device msm_device_sdc1 = {
 	.name           = "msm_sdcc",
 	.id             = 1,
@@ -302,8 +340,19 @@
 	},
 };
 
+struct platform_device msm_device_sdc2 = {
+	.name           = "msm_sdcc",
+	.id             = 2,
+	.num_resources  = ARRAY_SIZE(resources_sdc2),
+	.resource       = resources_sdc2,
+	.dev            = {
+		.coherent_dma_mask      = 0xffffffff,
+	},
+};
+
 static struct platform_device *msm_sdcc_devices[] __initdata = {
 	&msm_device_sdc1,
+	&msm_device_sdc2,
 };
 
 int __init msm_add_sdcc(unsigned int controller, struct mmc_platform_data *plat)