blob: 3d7d8c19bc1fb62fab6f48cdf61cdb00338a469d [file] [log] [blame]
Devin Kima3085422012-06-14 18:23:41 -07001/*
Devin Kim795a9a62012-08-28 10:08:46 -07002 * Copyright (C) 2011, 2012 LGE, Inc.
Devin Kima3085422012-06-14 18:23:41 -07003 *
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 */
18struct android_vibrator_platform_data {
19 int enable_status;
20 int amp;
21 int vibe_n_value;
Devin Kim7eb84ca2012-09-14 16:16:13 -070022 int vibe_warmup_delay; /* in ms */
Devin Kima3085422012-06-14 18:23:41 -070023 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 Kima3085422012-06-14 18:23:41 -070029#endif
30