blob: 9c6f060a3e76499ccf412acadb04209de94dae75 [file] [log] [blame]
Devin Kim9627b3d2012-06-21 14:23:53 -07001/* include/linux/mfd/pm8xxx/cradle.h
2 *
3 * Copyright (c) 2011-2012, LG Electronics Inc, All rights reserved.
4 * Author: Fred Cho <fred.cho@lge.com>
5 *
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#ifndef __PM8XXX_CRADLE_H__
17#define __PM8XXX_CRADLE_H__
18
19#define PM8XXX_CRADLE_DEV_NAME "bu52014hfv"
20
21#define CRADLE_NO_DEV 0
22#define CRADLE_DESKDOCK 1
23#define CRADLE_CARKIT 2
24#define CRADLE_POUCH 256
25
26struct pm8xxx_cradle_platform_data {
27 int carkit_detect_pin;
28 int pouch_detect_pin;
29 unsigned int carkit_irq;
30 unsigned int pouch_irq;
31 unsigned long irq_flags;
32};
33
34void cradle_set_deskdock(int state);
35int cradle_get_deskdock(void);
36
37#endif /* __CRADLE_H__ */