diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-22 23:20:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-22 23:20:18 -0400 |
commit | 7bfe0e66d5da32961f0060fc5d96b739b1ed64b9 (patch) | |
tree | 6d5dcf77248b574bb0c50930bbf9030aafb99fce /include/linux/mfd | |
parent | 6a76a6992341faab0ef31e7d97000e0cf336d0ba (diff) | |
parent | 10ce3cc919f50c2043b41ca968b43c26a3672600 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input subsystem updates from Dmitry Torokhov:
"- we finally merged driver for USB version of Synaptics touchpads
(I guess most commonly found in IBM/Lenovo keyboard/touchpad combo);
- a bunch of new drivers for embedded platforms (Cypress
touchscreens, DA9052 OnKey, MAX8997-haptic, Ilitek ILI210x
touchscreens, TI touchscreen);
- input core allows clients to specify desired clock source for
timestamps on input events (EVIOCSCLOCKID ioctl);
- input core allows querying state of all MT slots for given event
code via EVIOCGMTSLOTS ioctl;
- various driver fixes and improvements."
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (45 commits)
Input: ili210x - add support for Ilitek ILI210x based touchscreens
Input: altera_ps2 - use of_match_ptr()
Input: synaptics_usb - switch to module_usb_driver()
Input: convert I2C drivers to use module_i2c_driver()
Input: convert SPI drivers to use module_spi_driver()
Input: omap4-keypad - move platform_data to <linux/platform_data>
Input: kxtj9 - who_am_i check value and initial data rate fixes
Input: add driver support for MAX8997-haptic
Input: tegra-kbc - revise device tree support
Input: of_keymap - add device tree bindings for simple key matrices
Input: wacom - fix physical size calculation for 3rd-gen Bamboo
Input: twl4030-vibra - really switch from #if to #ifdef
Input: hp680_ts_input - ensure arguments to request_irq and free_irq are compatible
Input: max8925_onkey - avoid accessing input device too early
Input: max8925_onkey - allow to be used as a wakeup source
Input: atmel-wm97xx - convert to dev_pm_ops
Input: atmel-wm97xx - set driver owner
Input: add cyttsp touchscreen maintainer entry
Input: cyttsp - remove useless checks in cyttsp_probe()
Input: usbtouchscreen - add support for Data Modul EasyTouch TP 72037
...
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/max8997.h | 53 |
1 files changed, 52 insertions, 1 deletions
diff --git a/include/linux/mfd/max8997.h b/include/linux/mfd/max8997.h index fff590521e50..28726dd540f2 100644 --- a/include/linux/mfd/max8997.h +++ b/include/linux/mfd/max8997.h | |||
@@ -131,6 +131,55 @@ struct max8997_muic_platform_data { | |||
131 | int num_init_data; | 131 | int num_init_data; |
132 | }; | 132 | }; |
133 | 133 | ||
134 | enum max8997_haptic_motor_type { | ||
135 | MAX8997_HAPTIC_ERM, | ||
136 | MAX8997_HAPTIC_LRA, | ||
137 | }; | ||
138 | |||
139 | enum max8997_haptic_pulse_mode { | ||
140 | MAX8997_EXTERNAL_MODE, | ||
141 | MAX8997_INTERNAL_MODE, | ||
142 | }; | ||
143 | |||
144 | enum max8997_haptic_pwm_divisor { | ||
145 | MAX8997_PWM_DIVISOR_32, | ||
146 | MAX8997_PWM_DIVISOR_64, | ||
147 | MAX8997_PWM_DIVISOR_128, | ||
148 | MAX8997_PWM_DIVISOR_256, | ||
149 | }; | ||
150 | |||
151 | /** | ||
152 | * max8997_haptic_platform_data | ||
153 | * @pwm_channel_id: channel number of PWM device | ||
154 | * valid for MAX8997_EXTERNAL_MODE | ||
155 | * @pwm_period: period in nano second for PWM device | ||
156 | * valid for MAX8997_EXTERNAL_MODE | ||
157 | * @type: motor type | ||
158 | * @mode: pulse mode | ||
159 | * MAX8997_EXTERNAL_MODE: external PWM device is used to control motor | ||
160 | * MAX8997_INTERNAL_MODE: internal pulse generator is used to control motor | ||
161 | * @pwm_divisor: divisor for external PWM device | ||
162 | * @internal_mode_pattern: internal mode pattern for internal mode | ||
163 | * [0 - 3]: valid pattern number | ||
164 | * @pattern_cycle: the number of cycles of the waveform | ||
165 | * for the internal mode pattern | ||
166 | * [0 - 15]: available cycles | ||
167 | * @pattern_signal_period: period of the waveform for the internal mode pattern | ||
168 | * [0 - 255]: available period | ||
169 | */ | ||
170 | struct max8997_haptic_platform_data { | ||
171 | unsigned int pwm_channel_id; | ||
172 | unsigned int pwm_period; | ||
173 | |||
174 | enum max8997_haptic_motor_type type; | ||
175 | enum max8997_haptic_pulse_mode mode; | ||
176 | enum max8997_haptic_pwm_divisor pwm_divisor; | ||
177 | |||
178 | unsigned int internal_mode_pattern; | ||
179 | unsigned int pattern_cycle; | ||
180 | unsigned int pattern_signal_period; | ||
181 | }; | ||
182 | |||
134 | enum max8997_led_mode { | 183 | enum max8997_led_mode { |
135 | MAX8997_NONE, | 184 | MAX8997_NONE, |
136 | MAX8997_FLASH_MODE, | 185 | MAX8997_FLASH_MODE, |
@@ -192,7 +241,9 @@ struct max8997_platform_data { | |||
192 | /* ---- MUIC ---- */ | 241 | /* ---- MUIC ---- */ |
193 | struct max8997_muic_platform_data *muic_pdata; | 242 | struct max8997_muic_platform_data *muic_pdata; |
194 | 243 | ||
195 | /* HAPTIC: Not implemented */ | 244 | /* ---- HAPTIC ---- */ |
245 | struct max8997_haptic_platform_data *haptic_pdata; | ||
246 | |||
196 | /* RTC: Not implemented */ | 247 | /* RTC: Not implemented */ |
197 | /* ---- LED ---- */ | 248 | /* ---- LED ---- */ |
198 | struct max8997_led_platform_data *led_pdata; | 249 | struct max8997_led_platform_data *led_pdata; |