[target/msm7630]: Add code to auto detect interleaved mode.

Interleaved mode is identified using the build id provided
in shared memory. Configure the ptable entries for interleaved mode.
Configure GPIOs for the second NAND device. Add code to modify
the page size when operating in interleaved mode.

Change-Id: Ic1bbabc32b15ef0d17b52c89b1dcc639c0fef5ae
diff --git a/platform/msm7x30/gpio.c b/platform/msm7x30/gpio.c
index 0b1272b..c9662f2 100644
--- a/platform/msm7x30/gpio.c
+++ b/platform/msm7x30/gpio.c
@@ -209,4 +209,12 @@
 	return (readl(r->in) & b) ? 1 : 0;
 }
 
-
+void platform_config_interleaved_mode_gpios(void)
+{
+        /* configure EB2_CS1 through GPIO86 */
+	writel (GPIO_ALT_FUNC_PAGE_REG, 0x56);
+	writel (GPIO_ALT_FUNC_CFG_REG, 0x04);
+	/* configure the EBI2_BUSY1_N through GPIO115 */
+	writel (GPIO_ALT_FUNC_PAGE_REG, 0x73);
+	writel (GPIO_ALT_FUNC_CFG_REG, 0x08);
+}