Permalink
Browse files

add missing header file

  • Loading branch information...
1 parent 4ee2288 commit b8b12f32df7a58c633d09bb2721efa864425b0b2 @gokhanmoral committed Jul 26, 2012
Showing with 28 additions and 0 deletions.
  1. +28 −0 drivers/input/keyboard/cypress/u1-cypress-gpio.h
@@ -0,0 +1,28 @@
+#ifndef __U1_CYPRESS_GPIO_H__
+#define __U1_CYPRESS_GPIO_H__
+
+extern unsigned int system_rev;
+
+#if defined (CONFIG_MACH_U1_REV00PRE) || defined (CONFIG_MACH_U1_REV01PRE) \
+ || defined (CONFIG_MACH_U1_REV00)
+#define _3_GPIO_TOUCH_EN S5PV310_GPE3(3)
+#define _3_GPIO_TOUCH_INT S5PV310_GPE3(7)
+#define _3_GPIO_TOUCH_INT_AF S3C_GPIO_SFN(0xf)
+#define _3_TOUCH_SDA_28V S5PV310_GPE4(0)
+#define _3_TOUCH_SCL_28V S5PV310_GPE4(1)
+
+#define IRQ_TOUCH_INT gpio_to_irq(_3_GPIO_TOUCH_INT)
+
+#else
+
+#define _3_GPIO_TOUCH_EN -1
+#define _3_GPIO_TOUCH_INT GPIO_3_TOUCH_INT
+#define _3_GPIO_TOUCH_INT_AF S3C_GPIO_SFN(0xf)
+#define _3_TOUCH_SDA_28V GPIO_3_TOUCH_SDA
+#define _3_TOUCH_SCL_28V GPIO_3_TOUCH_SCL
+
+#define IRQ_TOUCH_INT gpio_to_irq(_3_GPIO_TOUCH_INT)
+#endif
+
+
+#endif

0 comments on commit b8b12f3

Please sign in to comment.