input: sensors: fromdos and remove trailing whitespace
[firefly-linux-kernel-4.4.55.git] / include / linux / power / rt5025-power.h
1 /*
2  *  include/linux/power/rt5025-power.h
3  *  Include header file for Richtek RT5025 Core Power Driver
4  *
5  *  Copyright (C) 2013 Richtek Electronics
6  *  cy_huang <cy_huang@richtek.com>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12
13 #ifndef __LINUX_RT5025_POWER_H
14 #define __LINUX_RT5025_POWER_H
15
16 #define RT5025_REG_CHGSTAT 0x01
17 #define RT5025_REG_CHGCTL2 0x02
18 #define RT5025_REG_CHGCTL3 0x03
19 #define RT5025_REG_CHGCTL4 0x04
20 #define RT5025_REG_CHGCTL5 0x05
21 #define RT5025_REG_CHGCTL6 0x06
22 #define RT5025_REG_CHGCTL7 0x07
23
24 #define RT5025_CHGRST_MASK 0x80
25
26 #define RT5025_CHGBUCKEN_MASK 0x02
27 #define RT5025_CHGCEN_MASK    0x10
28 #define RT5025_CHGAICR_MASK   0x06
29
30 #define RT5025_CHGSTAT_MASK  0x30
31 #define RT5025_CHGSTAT_SHIFT 4
32 #define RT5025_CHGSTAT_UNKNOWN 0x04
33
34 #ifdef CONFIG_RT5025_SUPPORT_ACUSB_DUALIN
35 #define RT5025_CHG_ACONLINE   0x02
36 #define RT5025_CHG_ACSHIFT    1
37 #define RT5025_CHG_USBONLINE  0x01
38 #define RT5025_CHG_USBSHIFT   0
39 #else
40 #define RT5025_CHG_ACONLINE   0x01
41 #define RT5025_CHG_ACSHIFT    0
42 #define RT5025_CHG_USBONLINE  0x02
43 #define RT5025_CHG_USBSHIFT   1
44 #endif /* CONFIG_RT5025_SUPPORT_ACUSB_DUALIN */
45
46 #endif /* #ifndef __LINUX_RT5025_POWER_H */