Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
board-ams-delta.h
Go to the documentation of this file.
1 /*
2  * arch/arm/plat-omap/include/mach/board-ams-delta.h
3  *
4  * Copyright (C) 2006 Jonathan McDowell <[email protected]>
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the
8  * Free Software Foundation; either version 2 of the License, or (at your
9  * option) any later version.
10  *
11  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
12  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
14  * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
15  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
16  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
18  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
19  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
20  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, write to the Free Software Foundation, Inc.,
24  * 675 Mass Ave, Cambridge, MA 02139, USA.
25  */
26 #ifndef __ASM_ARCH_OMAP_AMS_DELTA_H
27 #define __ASM_ARCH_OMAP_AMS_DELTA_H
28 
29 #if defined (CONFIG_MACH_AMS_DELTA)
30 
31 #define AMD_DELTA_LATCH2_SCARD_RSTIN 0x0400
32 #define AMD_DELTA_LATCH2_SCARD_CMDVCC 0x0800
33 #define AMS_DELTA_LATCH2_MODEM_CODEC 0x2000
34 
35 #define AMS_DELTA_GPIO_PIN_KEYBRD_DATA 0
36 #define AMS_DELTA_GPIO_PIN_KEYBRD_CLK 1
37 #define AMS_DELTA_GPIO_PIN_MODEM_IRQ 2
38 #define AMS_DELTA_GPIO_PIN_HOOK_SWITCH 4
39 #define AMS_DELTA_GPIO_PIN_SCARD_NOFF 6
40 #define AMS_DELTA_GPIO_PIN_SCARD_IO 7
41 #define AMS_DELTA_GPIO_PIN_CONFIG 11
42 #define AMS_DELTA_GPIO_PIN_NAND_RB 12
43 
44 #define AMS_DELTA_GPIO_PIN_LCD_VBLEN 240
45 #define AMS_DELTA_GPIO_PIN_LCD_NDISP 241
46 #define AMS_DELTA_GPIO_PIN_NAND_NCE 242
47 #define AMS_DELTA_GPIO_PIN_NAND_NRE 243
48 #define AMS_DELTA_GPIO_PIN_NAND_NWP 244
49 #define AMS_DELTA_GPIO_PIN_NAND_NWE 245
50 #define AMS_DELTA_GPIO_PIN_NAND_ALE 246
51 #define AMS_DELTA_GPIO_PIN_NAND_CLE 247
52 #define AMS_DELTA_GPIO_PIN_KEYBRD_PWR 248
53 #define AMS_DELTA_GPIO_PIN_KEYBRD_DATAOUT 249
54 #define AMS_DELTA_GPIO_PIN_SCARD_RSTIN 250
55 #define AMS_DELTA_GPIO_PIN_SCARD_CMDVCC 251
56 #define AMS_DELTA_GPIO_PIN_MODEM_NRESET 252
57 #define AMS_DELTA_GPIO_PIN_MODEM_CODEC 253
58 
59 #define AMS_DELTA_LATCH2_GPIO_BASE AMS_DELTA_GPIO_PIN_LCD_VBLEN
60 #define AMS_DELTA_LATCH2_NGPIO 16
61 
62 #ifndef __ASSEMBLY__
63 void ams_delta_latch_write(int base, int ngpio, u16 mask, u16 value);
64 #define ams_delta_latch2_write(mask, value) \
65  ams_delta_latch_write(AMS_DELTA_LATCH2_GPIO_BASE, \
66  AMS_DELTA_LATCH2_NGPIO, (mask), (value))
67 #endif
68 
69 #endif /* CONFIG_MACH_AMS_DELTA */
70 
71 #endif /* __ASM_ARCH_OMAP_AMS_DELTA_H */