blob: f300c4ab42efc85b39a3afc37aa81505b81799b0 [file] [log] [blame]
Shantur Rathore02831812014-04-10 22:48:34 +01001/*
2 * Author: Chad Froebel <chadfroebel@gmail.com>
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
15
16#ifndef _LINUX_FASTCHG_H
17#define _LINUX_FASTCHG_H
18
19extern int force_fast_charge;
20
21#define FAST_CHARGE_DISABLED 0 /* default */
22#define FAST_CHARGE_FORCE_AC 1
23#define FAST_CHARGE_FORCE_AC_IF_NO_USB 2
24
25extern int USB_peripheral_detected;
26
27#define USB_ACC_NOT_DETECTED 0 /* default */
28#define USB_ACC_DETECTED 1
29
30#define USB_INVALID_DETECTED 0
31#define USB_SDP_DETECTED 1
32#define USB_DCP_DETECTED 2
33#define USB_CDP_DETECTED 3
34#define USB_ACA_A_DETECTED 4
35#define USB_ACA_B_DETECTED 5
36#define USB_ACA_C_DETECTED 6
37#define USB_ACA_DOCK_DETECTED 7
38#define NO_USB_DETECTED 10 /* default */
39
40extern int USB_porttype_detected;
41
42#endif