aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/include/mach/gpio-rev00-m0grandectc.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-exynos/include/mach/gpio-rev00-m0grandectc.h')
-rw-r--r--arch/arm/mach-exynos/include/mach/gpio-rev00-m0grandectc.h98
1 files changed, 80 insertions, 18 deletions
diff --git a/arch/arm/mach-exynos/include/mach/gpio-rev00-m0grandectc.h b/arch/arm/mach-exynos/include/mach/gpio-rev00-m0grandectc.h
index e5c96b4..17d9586 100644
--- a/arch/arm/mach-exynos/include/mach/gpio-rev00-m0grandectc.h
+++ b/arch/arm/mach-exynos/include/mach/gpio-rev00-m0grandectc.h
@@ -19,7 +19,11 @@ extern void midas_config_sleep_gpio_table(void);
#define GPIO_ISP_STANDBY EXYNOS4212_GPM0(1)
#define GPIO_CAM_IO_EN EXYNOS4212_GPM0(2)
+#if defined(CONFIG_MACH_GRANDE)
+#define GPIO_ISP_CORE_EN EXYNOS4212_GPJ0(1)
+#else
#define GPIO_ISP_CORE_EN EXYNOS4212_GPM0(3)
+#endif
#define GPIO_CAM_AF_EN EXYNOS4212_GPM0(4)
#define GPIO_CAM_VT_nRST EXYNOS4212_GPM1(6)
@@ -29,10 +33,28 @@ extern void midas_config_sleep_gpio_table(void);
#define GPIO_VT_CAM_SCL_18V EXYNOS4212_GPM4(2)
#define GPIO_VT_CAM_SDA_18V EXYNOS4212_GPM4(3)
-#define GPIO_ACC_INT EXYNOS4_GPX0(0)
+/* keys */
+#define GPIO_KBR_0 EXYNOS4_GPX2(2)
+#define GPIO_KBR_1 EXYNOS4_GPX2(4)
+#define GPIO_KBR_2 EXYNOS4_GPX3(0)
+#define GPIO_KBR_3 EXYNOS4_GPX3(3)
+#define GPIO_KBR_4 EXYNOS4_GPX3(4)
-#define GPIO_GYRO_DE EXYNOS4_GPL2(0)
+#define GPIO_KBC_0 EXYNOS4_GPL2(3)
+#define GPIO_KBC_1 EXYNOS4_GPL2(4)
+#define GPIO_KBC_2 EXYNOS4_GPL2(5)
+#define GPIO_KBC_3 EXYNOS4_GPL2(6)
+#define GPIO_KBC_4 EXYNOS4_GPL2(7)
+
+
+/* Sensors & NFC*/
+#define GPIO_PS_ALS_EN EXYNOS4212_GPJ0(5)
+#define GPIO_PS_ALS_SDA_28V EXYNOS4_GPF0(0)
+#define GPIO_PS_ALS_SCL_28V EXYNOS4_GPF0(1)
+#define GPIO_PS_ALS_INT EXYNOS4_GPX0(2)
+#define GPIO_ACC_INT EXYNOS4_GPX0(0)
+#define GPIO_GYRO_DE EXYNOS4_GPL2(0)
#define GPIO_GYRO_INT EXYNOS4_GPF0(3)
#define GPIO_GSENSE_SDA_18V EXYNOS4_GPD1(2)
#define GPIO_GSENSE_SCL_18V EXYNOS4_GPD1(3)
@@ -40,14 +62,16 @@ extern void midas_config_sleep_gpio_table(void);
#define GPIO_MSENSOR_INT EXYNOS4212_GPJ0(7)
#define GPIO_MSENSOR_SDA_18V EXYNOS4_GPY2(4)
#define GPIO_MSENSOR_SCL_18V EXYNOS4_GPY2(5)
+#define GPIO_MSENSE_RST_N EXYNOS4212_GPM4(4)
#define GPIO_BENSE_SCL_18V EXYNOS4_GPY2(3)
#define GPIO_BSENSE_SDA_18V EXYNOS4_GPY2(2)
-
+#define GPIO_3G_DET EXYNOS4_GPX0(6)
#define GPIO_TF_EN EXYNOS4_GPY2(0)
#define GPIO_MIC_BIAS_EN EXYNOS4_GPF1(7)
#define GPIO_SUB_MIC_BIAS_EN EXYNOS4_GPF2(0)
+#define GPIO_AUDIO_PCM_SEL EXYNOS4_GPF2(3)
#define GPIO_PMU_RST EXYNOS4_GPX3(2)
@@ -55,8 +79,12 @@ extern void midas_config_sleep_gpio_table(void);
#define GPIO_IF_PMIC_IRQ EXYNOS4_GPX1(5)
#define GPIO_TSP_INT EXYNOS4212_GPM2(3)
+#define GPIO_TSP_EN EXYNOS4_GPL0(3)
+
#define GPIO_TSP_SDA_18V EXYNOS4_GPA1(2)
#define GPIO_TSP_SCL_18V EXYNOS4_GPA1(3)
+#define GPIO_HALL_SW EXYNOS4_GPX3(7)
+
#define GPIO_BT_EN EXYNOS4_GPL0(6)
#define GPIO_BT_WAKE EXYNOS4_GPX3(1)
@@ -93,6 +121,11 @@ extern void midas_config_sleep_gpio_table(void);
#define GPIO_FLM_TXD EXYNOS4_GPA1(5)
#define GPIO_FLM_TXD_AF 2
+#define GPIO_3_TOUCH_SCL EXYNOS4_GPL0(1)
+#define GPIO_3_TOUCH_SDA EXYNOS4_GPL0(2)
+#define GPIO_3_TOUCH_INT EXYNOS4212_GPJ0(3)
+#define GPIO_3_TOUCH_EN EXYNOS4_GPC1(0)
+
#define GPIO_PWM0 EXYNOS4_GPD0(0)
#define GPIO_PWM1 EXYNOS4_GPD0(1)
#define GPIO_PWM2 EXYNOS4_GPD0(2)
@@ -133,18 +166,29 @@ extern void midas_config_sleep_gpio_table(void);
#define GPIO_LCD_SEL EXYNOS4_GPF2(6)
#define GPIO_LCD_OE EXYNOS4_GPF2(7)
+#define GPIO_TSP_SEL EXYNOS4_GPF2(7)
#define GPIO_PMIC_DVS1 EXYNOS4212_GPM3(0)
#define GPIO_PMIC_DVS2 EXYNOS4212_GPM3(1)
+#if defined(CONFIG_REGULATOR_LP8720)
+#define GPIO_FOLDER_PMIC_EN EXYNOS4_GPL0(4)
+#define GPIO_FOLDER_PMIC_SDA EXYNOS4_GPF0(4)
+#define GPIO_FOLDER_PMIC_SCL EXYNOS4_GPF0(6)
+
+#if defined(CONFIG_MACH_GRANDE)
+#define GPIO_SUB_PMIC_EN EXYNOS4_GPF0(2)
+#define GPIO_SUB_PMIC_SDA EXYNOS4_GPF0(7)
+#define GPIO_SUB_PMIC_SCL EXYNOS4_GPF1(0)
+#endif
+#endif
+
/* Definitions for Sii 9244B0 */
#define GPIO_PMIC_DVS3 EXYNOS4212_GPM3(2)
#define GPIO_BUCK2_SEL EXYNOS4_GPF3(1)
#define GPIO_BUCK3_SEL EXYNOS4_GPF3(2)
#define GPIO_BUCK4_SEL EXYNOS4_GPF3(3)
-#define GPIO_VOL_UP EXYNOS4_GPX2(2)
-#define GPIO_VOL_DOWN EXYNOS4_GPX3(3)
#define GPIO_VOL_UP_00 EXYNOS4_GPX2(2)
#define GPIO_VOL_DOWN_00 EXYNOS4_GPX3(3)
@@ -156,13 +200,14 @@ extern void midas_config_sleep_gpio_table(void);
#define MHL_WAKEUP_IRQ gpio_to_irq(GPIO_MHL_WAKE_UP)
#define GPIO_nPOWER EXYNOS4_GPX2(7)
+#define GPIO_VOL_UP EXYNOS4_GPX1(3)
+#define GPIO_VOL_DOWN EXYNOS4_GPX3(5)
+#define GPIO_HOLD EXYNOS4_GPX0(5)
#define GPIO_OK_KEY EXYNOS4_GPX3(5)
#define GPIO_OK_KEY_ANDROID EXYNOS4_GPX0(1) /*system_rev == 11*/
#define GPIO_OK_KEY_ANDROID_F EXYNOS4_GPX1(3) /*system_rev >= 15*/
#define GPIO_FUEL_ALERT EXYNOS4_GPX2(3)
-#define GPIO_WPC_INT EXYNOS4_GPX3(0)
-
#define GPIO_VIBTONE_PWM EXYNOS4_GPD0(1)
#define GPIO_CODEC_SDA_18V_00 EXYNOS4_GPB(0)
@@ -187,26 +232,27 @@ extern void midas_config_sleep_gpio_table(void);
/* Definitions for CMC221 */
#define GPIO_ACTIVE_STATE EXYNOS4_GPF1(1)
#define GPIO_PDA_ACTIVE EXYNOS4_GPF1(6)
-#define GPIO_AP_CP_INT EXYNOS4_GPF2(2)
+/* #define GPIO_AP_CP_INT EXYNOS4_GPF2(2) */
#define GPIO_USB_HUB_RST EXYNOS4_GPL0(0)
#define GPIO_USB_HUB_SCL EXYNOS4_GPL1(0)
#define GPIO_USB_HUB_SDA EXYNOS4_GPL1(1)
#define GPIO_USB_HUB_INT EXYNOS4_GPX2(1)
#define GPIO_USB_HUB_CONNECT EXYNOS4212_GPV3(5)
-#define GPIO_USB_BOOT_EN EXYNOS4212_GPV3(7)
+#define GPIO_USB_BOOT_EN EXYNOS4_GPF2(2)
-#define GPIO_BOOT_SW_SEL EXYNOS4212_GPV3(6)
+#define GPIO_BOOT_SW_SEL EXYNOS4_GPF2(5)
/* for revesion 06 higher */
-#define GPIO_USB_BOOT_EN_REV06 EXYNOS4212_GPV3(7)
-#define GPIO_BOOT_SW_SEL_REV06 EXYNOS4212_GPV3(6)
+#define GPIO_USB_BOOT_EN_REV06 EXYNOS4_GPF2(2)
+#define GPIO_BOOT_SW_SEL_REV06 EXYNOS4_GPF2(5)
#define GPIO_IPC_SLAVE_WAKEUP EXYNOS4_GPX1(0)
#define GPIO_IPC_HOST_WAKEUP EXYNOS4_GPX1(1)
+#define GPIO_CP_DUMP_INT EXYNOS4_GPX1(2)
-#define GPIO_CP_MSM_PWRON EXYNOS4_GPL2(5)
-#define GPIO_CP_MSM_RST EXYNOS4_GPL2(4)
+#define GPIO_CP_MSM_PWRON EXYNOS4212_GPM1(1)
+#define GPIO_CP_MSM_RST EXYNOS4_GPL2(1)
#define GPIO_CP_MSM_PMU_RST EXYNOS4_GPX3(2)
#define GPIO_CP_MSM_DUMP EXYNOS4_GPX1(2)
@@ -216,12 +262,28 @@ extern void midas_config_sleep_gpio_table(void);
#define GPIO_MSM_DPRAM_INT EXYNOS4_GPX2(0)
#define MSM_DPRAM_INT_IRQ IRQ_EINT(16) /* IRQ of GPX2[0] */
-#define GPIO_CP2_MSM_PWRON EXYNOS4_GPL2(1)
-#define GPIO_CP2_MSM_RST EXYNOS4_GPL2(2)
-
-/* DUMP GPIOS */
+#define GPIO_CP2_MSM_PWRON EXYNOS4212_GPM0(6)
+#define GPIO_CP2_MSM_RST EXYNOS4212_GPM0(5)
+#define GPIO_BOOT_SW_SEL_CP2 EXYNOS4_GPF2(4)
+#define GPIO_ESC_PHONE_ACTIVE EXYNOS4_GPX1(4)
+#define ESC_PHONE_ACTIVE_IRQ IRQ_EINT(12)
+#define GPIO_ESC_DPRAM_INT EXYNOS4_GPX1(7)
+#define ESC_DPRAM_INT_IRQ IRQ_EINT(15)
+
+#if defined(CONFIG_SIM_DETECT)
+#define GPIO_CP_SIM_DETECT EXYNOS4_GPX0(1)
+#define CP_SIM_DETECT_IRQ IRQ_EINT(1)
+#define GPIO_ESC_SIM_DETECT EXYNOS4_GPX3(6)
+#define ESC_SIM_DETECT_IRQ IRQ_EINT(30)
+#endif
+
+/* DUMMY GPIOS */
#define GPIO_HDMI_HPD EXYNOS4_GPA1(4)
#define GPIO_HDMI_EN EXYNOS4_GPA1(4)
#define GPIO_V_BUS_INT EXYNOS4_GPA1(4)
+#if defined(CONFIG_SIM_SLOT_SWITCH)
+#define GPIO_UIM_SIM_SEL EXYNOS4212_GPM0(7)
+#endif
+
#endif /* __MACH_GPIO_C1_H */