e2e432cf9d8e72250736aca71044c45a2d2af603
[firefly-linux-kernel-4.4.55.git] / include / linux / power / rt5025-swjeita.h
1 /*
2  *  include/linux/power/rt5025-swjeita.h
3  *  Include header file for Richtek RT5025 Core Jeita 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_SWJEITA_H
14 #define __LINUX_RT5025_SWJEITA_H
15
16 #define RT5025_REG_CHGCTL3      0x03
17 #define RT5025_REG_CHGCTL4      0x04
18 #define RT5025_REG_CHGCTL7      0x07
19 #define RT5025_REG_AINH         0x5E
20 #define RT5025_REG_CHANNELL     0x63
21 #define RT5025_REG_IRQCTL       0x50
22 #define RT5025_REG_TALRTMAX     0x56
23 #define RT5025_REG_TALRTMIN     0x57
24
25 #define RT5025_CHGCCEN_MASK     0x10
26 #define RT5025_CHGICC_SHIFT     3
27 #define RT5025_CHGICC_MASK      0x78
28 #define RT5025_CHGCV_SHIFT      2
29 #define RT5025_CHGCV_MASK       0xFC
30 #define RT5025_AINEN_MASK       0x04
31 #define RT5025_TMXEN_MASK       0x20
32 #define RT5025_TMNEN_MASK       0x10
33
34
35 #endif /* #ifndef __LINUX_RT5025_SWJEITA_H */