diff options
author | Misael Lopez Cruz <misael.lopez@ti.com> | 2011-05-01 04:51:24 -0400 |
---|---|---|
committer | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-07-04 12:36:18 -0400 |
commit | cc697d38392c92b7504e7719c65ae905f0a0618a (patch) | |
tree | 53f0c7be681859d3529a24245bcdae76e664d92c /include/linux/i2c | |
parent | 6c44863763254eaf96ec7d4f816fb88605301e76 (diff) |
input: Add initial support for TWL6040 vibrator
Add twl6040_vibra as a child of MFD device twl6040_codec. This
implementation covers the PCM-to-PWM mode of TWL6040 vibrator
module.
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
CC: Tejun Heo <tj@kernel.org>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/twl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index ea5baa269226..685fd767c69b 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h | |||
@@ -669,6 +669,14 @@ struct twl4030_codec_data { | |||
669 | 669 | ||
670 | struct twl4030_vibra_data { | 670 | struct twl4030_vibra_data { |
671 | unsigned int coexist; | 671 | unsigned int coexist; |
672 | |||
673 | /* twl6040 */ | ||
674 | unsigned int vibldrv_res; /* left driver resistance */ | ||
675 | unsigned int vibrdrv_res; /* right driver resistance */ | ||
676 | unsigned int viblmotor_res; /* left motor resistance */ | ||
677 | unsigned int vibrmotor_res; /* right motor resistance */ | ||
678 | int vddvibl_uV; /* VDDVIBL volt, set 0 for fixed reg */ | ||
679 | int vddvibr_uV; /* VDDVIBR volt, set 0 for fixed reg */ | ||
672 | }; | 680 | }; |
673 | 681 | ||
674 | struct twl4030_audio_data { | 682 | struct twl4030_audio_data { |