0215077a7978712e38cfc06a1cabe29a5d663e1c
[firefly-linux-kernel-4.4.55.git] / include / linux / mfd / rt5025-gpio.h
1 /*
2  *  include/linux/mfd/rt5025-gpio.h
3  *  Include header file for Richtek RT5025 PMIC GPIO 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_GPIO_H
14 #define __LINUX_RT5025_GPIO_H
15
16 #define RT5025_REG_GPIO0 0x1C
17 #define RT5025_REG_GPIO1 0x1D
18 #define RT5025_REG_GPIO2 0x1E
19
20 #define RT5025_GPIO_NR 3
21
22 #define RT5025_GPIO_INPUT       0x00
23 #define RT5025_GPIO_OUTPUT      0x02
24
25 #define RT5025_GPIO_DIRSHIFT 6
26 #define RT5025_GPIO_DIRMASK  0xC0
27 #define RT5025_GPIO_OVALUESHIFT 4
28 #define RT5025_GPIO_OVALUEMASK 0x10
29 #define RT5025_GPIO_IVALUEMASK 0x08
30
31 #endif /* #ifndef __LINUX_RT5025_GPIO_H */