2 * twl4030-gpio.h - header for TWL4030 GPIO module
4 * Copyright (C) 2005-2006, 2008 Texas Instruments, Inc.
5 * Copyright (C) 2008 Nokia Corporation
7 * Based on tlv320aic23.c:
8 * Copyright (c) by Kai Svahn <kai.svahn@nokia.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #ifndef __TWL4030_GPIO_H_
27 #define __TWL4030_GPIO_H_
30 * GPIO Block Register definitions
33 #define REG_GPIODATAIN1 0x0
34 #define REG_GPIODATAIN2 0x1
35 #define REG_GPIODATAIN3 0x2
36 #define REG_GPIODATADIR1 0x3
37 #define REG_GPIODATADIR2 0x4
38 #define REG_GPIODATADIR3 0x5
39 #define REG_GPIODATAOUT1 0x6
40 #define REG_GPIODATAOUT2 0x7
41 #define REG_GPIODATAOUT3 0x8
42 #define REG_CLEARGPIODATAOUT1 0x9
43 #define REG_CLEARGPIODATAOUT2 0xA
44 #define REG_CLEARGPIODATAOUT3 0xB
45 #define REG_SETGPIODATAOUT1 0xC
46 #define REG_SETGPIODATAOUT2 0xD
47 #define REG_SETGPIODATAOUT3 0xE
48 #define REG_GPIO_DEBEN1 0xF
49 #define REG_GPIO_DEBEN2 0x10
50 #define REG_GPIO_DEBEN3 0x11
51 #define REG_GPIO_CTRL 0x12
52 #define REG_GPIOPUPDCTR1 0x13
53 #define REG_GPIOPUPDCTR2 0x14
54 #define REG_GPIOPUPDCTR3 0x15
55 #define REG_GPIOPUPDCTR4 0x16
56 #define REG_GPIOPUPDCTR5 0x17
57 #define REG_GPIO_ISR1A 0x19
58 #define REG_GPIO_ISR2A 0x1A
59 #define REG_GPIO_ISR3A 0x1B
60 #define REG_GPIO_IMR1A 0x1C
61 #define REG_GPIO_IMR2A 0x1D
62 #define REG_GPIO_IMR3A 0x1E
63 #define REG_GPIO_ISR1B 0x1F
64 #define REG_GPIO_ISR2B 0x20
65 #define REG_GPIO_ISR3B 0x21
66 #define REG_GPIO_IMR1B 0x22
67 #define REG_GPIO_IMR2B 0x23
68 #define REG_GPIO_IMR3B 0x24
69 #define REG_GPIO_EDR1 0x28
70 #define REG_GPIO_EDR2 0x29
71 #define REG_GPIO_EDR3 0x2A
72 #define REG_GPIO_EDR4 0x2B
73 #define REG_GPIO_EDR5 0x2C
74 #define REG_GPIO_SIH_CTRL 0x2D
76 #endif /* End of __TWL4030_GPIO_H */