Devin Kim | a308542 | 2012-06-14 18:23:41 -0700 | [diff] [blame] | 1 | /* |
Devin Kim | 795a9a6 | 2012-08-28 10:08:46 -0700 | [diff] [blame] | 2 | * Copyright (C) 2011, 2012 LGE, Inc. |
Devin Kim | a308542 | 2012-06-14 18:23:41 -0700 | [diff] [blame] | 3 | * |
| 4 | * This software is licensed under the terms of the GNU General Public |
| 5 | * License version 2, as published by the Free Software Foundation, and |
| 6 | * may be copied, distributed, and modified under those terms. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #ifndef __LINUX_ANDROID_VIBRATOR_H |
| 15 | #define __LINUX_ANDROID_VIBRATOR_H |
| 16 | |
| 17 | /* android vibrator platform data */ |
| 18 | struct android_vibrator_platform_data { |
| 19 | int enable_status; |
| 20 | int amp; |
| 21 | int vibe_n_value; |
Devin Kim | 7eb84ca | 2012-09-14 16:16:13 -0700 | [diff] [blame] | 22 | int vibe_warmup_delay; /* in ms */ |
Devin Kim | a308542 | 2012-06-14 18:23:41 -0700 | [diff] [blame] | 23 | int (*power_set)(int enable); /* LDO Power Set Function */ |
| 24 | int (*pwm_set)(int enable, int gain, int n_value); /* PWM Set Function */ |
| 25 | int (*ic_enable_set)(int enable); /* Motor IC Set Function */ |
| 26 | int (*vibrator_init)(void); |
| 27 | }; |
| 28 | |
Devin Kim | a308542 | 2012-06-14 18:23:41 -0700 | [diff] [blame] | 29 | #endif |
| 30 | |