1 /* linux/arch/arm/mach-s5pv310/include/mach/regs-gpio.h
3 * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
6 * S5PV310 - GPIO (including EINT) register definitions
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 __ASM_ARCH_REGS_GPIO_H
14 #define __ASM_ARCH_REGS_GPIO_H __FILE__
18 #define S5PV310_EINT40CON (S5P_VA_GPIO2 + 0xE00)
19 #define S5P_EINT_CON(x) (S5PV310_EINT40CON + ((x) * 0x4))
21 #define S5PV310_EINT40FLTCON0 (S5P_VA_GPIO2 + 0xE80)
22 #define S5P_EINT_FLTCON(x) (S5PV310_EINT40FLTCON0 + ((x) * 0x4))
24 #define S5PV310_EINT40MASK (S5P_VA_GPIO2 + 0xF00)
25 #define S5P_EINT_MASK(x) (S5PV310_EINT40MASK + ((x) * 0x4))
27 #define S5PV310_EINT40PEND (S5P_VA_GPIO2 + 0xF40)
28 #define S5P_EINT_PEND(x) (S5PV310_EINT40PEND + ((x) * 0x4))
30 /* values for S5P_EXTINT0 */
31 #define S5P_EXTINT_LOWLEV (0x00)
32 #define S5P_EXTINT_HILEV (0x01)
33 #define S5P_EXTINT_FALLEDGE (0x02)
34 #define S5P_EXTINT_RISEEDGE (0x03)
35 #define S5P_EXTINT_BOTHEDGE (0x04)
37 #define EINT_MODE S3C_GPIO_SFN(0xf)
39 #define EINT_GPIO_0(x) S5PV310_GPX0(x)
40 #define EINT_GPIO_1(x) S5PV310_GPX1(x)
41 #define EINT_GPIO_2(x) S5PV310_GPX2(x)
42 #define EINT_GPIO_3(x) S5PV310_GPX3(x)
44 #endif /* __ASM_ARCH_REGS_GPIO_H */