Merge remote-tracking branch 'origin/upstream/linux-linaro-lsk-v3.10-android+android...
[firefly-linux-kernel-4.4.55.git] / include / linux / mfd / rt5025-irq.h
1 /*
2  *  include/linux/mfd/rt5025-irq.h
3  *  Include header file for Richtek RT5025 PMIC IRQ file
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_IRQ_H
14 #define __LINUX_RT5025_IRQ_H
15
16 #define RT5025_REG_CHGSTAT      0x01
17
18 #define RT5025_REG_IRQEN1       0x30
19 #define RT5025_REG_IRQSTATUS1   0x31
20 #define RT5025_REG_IRQEN2       0x32
21 #define RT5025_REG_IRQSTATUS2   0x33
22 #define RT5025_REG_IRQEN3       0x34
23 #define RT5025_REG_IRQSTATUS3   0x35
24 #define RT5025_REG_IRQEN4       0x36
25 #define RT5025_REG_IRQSTATUS4   0x37
26 #define RT5025_REG_IRQEN5       0x38
27 #define RT5025_REG_IRQSTATUS5   0x39
28
29 #define RT5025_INACIRQ_MASK     0x40
30 #define RT5025_INUSBIRQ_MASK    0x08
31 #define RT5025_ADAPIRQ_MASK     (RT5025_INACIRQ_MASK|RT5025_INUSBIRQ_MASK)
32 #define RT5025_CHTERMI_MASK     0x01
33
34 #define RT5025_REG_GAUGEIRQEN   0x50
35 #define RT5025_REG_GAUGEIRQFLG  0x51
36 #define RT5025_FLG_TEMP         0x30
37 #define RT5025_FLG_VOLT         0x07
38
39 #endif /* #ifndef __LINUX_RT5025_IRQ_H */