2 * include/linux/mfd/rt5025-gpio.h
3 * Include header file for Richtek RT5025 PMIC GPIO file
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_GPIO_H
14 #define __LINUX_RT5025_GPIO_H
16 #define RT5025_REG_GPIO0 0x1C
17 #define RT5025_REG_GPIO1 0x1D
18 #define RT5025_REG_GPIO2 0x1E
20 #define RT5025_GPIO_NR 3
22 #define RT5025_GPIO_INPUT 0x00
23 #define RT5025_GPIO_OUTPUT 0x02
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
31 #endif /* #ifndef __LINUX_RT5025_GPIO_H */