diff options
| author | Jaewon Kim <[email protected]> | 2014-09-11 23:15:01 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2014-09-11 23:40:28 -0700 |
| commit | a3b3ca753cdc92c7d5f57404afed3115b3b79cc6 (patch) | |
| tree | de26e862cd43b9c2cb78eb06749145d3726b8e5c /include/linux/mfd | |
| parent | adff5962fdd2f29bac943bc014ebd529444b2153 (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 <[email protected]>
Acked-by: Chanwoo Choi <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/max77693-private.h | 9 |
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 { MAX77693_HAPTIC_REG_END, }; +/* max77693-pmic LSCNFG configuraton register */ +#define MAX77693_PMIC_LOW_SYS_MASK 0x80 +#define MAX77693_PMIC_LOW_SYS_SHIFT 7 + +/* max77693-haptic configuration register */ +#define MAX77693_CONFIG2_MODE 7 +#define MAX77693_CONFIG2_MEN 6 +#define MAX77693_CONFIG2_HTYP 5 + enum max77693_irq_source { LED_INT = 0, TOPSYS_INT, |