2 * include/linux/power/rt5025-power.h
3 * Include header file for Richtek RT5025 Core Power Driver
5 * Copyright (C) 2013 Richtek Electronics
6 * cy_huang <cy_huang@richtek.com>
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.
13 #ifndef __LINUX_RT5025_POWER_H
14 #define __LINUX_RT5025_POWER_H
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
24 #define RT5025_CHGRST_MASK 0x80
26 #define RT5025_CHGBUCKEN_MASK 0x02
27 #define RT5025_CHGCEN_MASK 0x10
28 #define RT5025_CHGCC_MASK 0x7E
30 #define RT5025_CHGSTAT_MASK 0x30
31 #define RT5025_CHGSTAT_SHIFT 4
32 #define RT5025_CHGSTAT_UNKNOWN 0x04
34 #define RT5025_CHG_ACONLINE 0x02
35 #define RT5025_CHG_ACSHIFT 1
36 #define RT5025_CHG_USBONLINE 0x01
37 #define RT5025_CHG_USBSHIFT 0
39 #endif /* #ifndef __LINUX_RT5025_POWER_H */