aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/cypressbln/u1-cypress-gpio.h
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-12-13 02:30:23 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-12-13 02:30:23 +0100
commit2ecd9abf516e5e4afc482eb0329f9304aed285b4 (patch)
treea2980c05f50df82d6d043e4e44ecaf2023220870 /drivers/input/keyboard/cypressbln/u1-cypress-gpio.h
parent698f3e8de2f0104dc80402ea151aae73b946a2d9 (diff)
parenta04b065c010280ed1806c73cb234a2bf657a5ce9 (diff)
downloadkernel_samsung_smdk4412-2ecd9abf516e5e4afc482eb0329f9304aed285b4.zip
kernel_samsung_smdk4412-2ecd9abf516e5e4afc482eb0329f9304aed285b4.tar.gz
kernel_samsung_smdk4412-2ecd9abf516e5e4afc482eb0329f9304aed285b4.tar.bz2
Merge branch 'cm-13.0' of https://github.com/CyanogenMod/android_kernel_samsung_smdk4412 into replicant-6.0
Diffstat (limited to 'drivers/input/keyboard/cypressbln/u1-cypress-gpio.h')
-rw-r--r--drivers/input/keyboard/cypressbln/u1-cypress-gpio.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/input/keyboard/cypressbln/u1-cypress-gpio.h b/drivers/input/keyboard/cypressbln/u1-cypress-gpio.h
new file mode 100644
index 0000000..36296e1
--- /dev/null
+++ b/drivers/input/keyboard/cypressbln/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