aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJaewon Kim <jaewon02.kim@samsung.com>2014-09-12 02:15:01 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-09-12 02:40:28 -0400
commita3b3ca753cdc92c7d5f57404afed3115b3b79cc6 (patch)
treede26e862cd43b9c2cb78eb06749145d3726b8e5c /include/linux
parentadff5962fdd2f29bac943bc014ebd529444b2153 (diff)
Input: add haptic driver on max77693
This driver to supports the haptic controller on MAX77693 Multifunction device with PMIC, CHARGER, LED, MUIC, HAPTIC. This driver supports external pwm and LRA (Linear Resonant Actuator) motor. User can control the haptic device via force feedback framework. Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/max77693-private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mfd/max77693-private.h b/include/linux/mfd/max77693-private.h
index c466ff3e16b8..d0e578fd7053 100644
--- a/include/linux/mfd/max77693-private.h
+++ b/include/linux/mfd/max77693-private.h
@@ -251,6 +251,15 @@ enum max77693_haptic_reg {
251 MAX77693_HAPTIC_REG_END, 251 MAX77693_HAPTIC_REG_END,
252}; 252};
253 253
254/* max77693-pmic LSCNFG configuraton register */
255#define MAX77693_PMIC_LOW_SYS_MASK 0x80
256#define MAX77693_PMIC_LOW_SYS_SHIFT 7
257
258/* max77693-haptic configuration register */
259#define MAX77693_CONFIG2_MODE 7
260#define MAX77693_CONFIG2_MEN 6
261#define MAX77693_CONFIG2_HTYP 5
262
254enum max77693_irq_source { 263enum max77693_irq_source {
255 LED_INT = 0, 264 LED_INT = 0,
256 TOPSYS_INT, 265 TOPSYS_INT,