2 * linux/include/asm-arm/arch-omap/board-ams-delta.h
4 * Copyright (C) 2006 Jonathan McDowell <noodles@earth.li>
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.
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.
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.
26 #ifndef __ASM_ARCH_OMAP_AMS_DELTA_H
27 #define __ASM_ARCH_OMAP_AMS_DELTA_H
29 #if defined (CONFIG_MACH_AMS_DELTA)
31 #define AMS_DELTA_LATCH1_PHYS 0x01000000
32 #define AMS_DELTA_LATCH1_VIRT 0xEA000000
33 #define AMS_DELTA_MODEM_PHYS 0x04000000
34 #define AMS_DELTA_MODEM_VIRT 0xEB000000
35 #define AMS_DELTA_LATCH2_PHYS 0x08000000
36 #define AMS_DELTA_LATCH2_VIRT 0xEC000000
38 #define AMS_DELTA_LATCH1_LED_CAMERA 0x01
39 #define AMS_DELTA_LATCH1_LED_ADVERT 0x02
40 #define AMS_DELTA_LATCH1_LED_EMAIL 0x04
41 #define AMS_DELTA_LATCH1_LED_HANDSFREE 0x08
42 #define AMS_DELTA_LATCH1_LED_VOICEMAIL 0x10
43 #define AMS_DELTA_LATCH1_LED_VOICE 0x20
45 #define AMS_DELTA_LATCH2_LCD_VBLEN 0x0001
46 #define AMS_DELTA_LATCH2_LCD_NDISP 0x0002
47 #define AMS_DELTA_LATCH2_NAND_NCE 0x0004
48 #define AMS_DELTA_LATCH2_NAND_NRE 0x0008
49 #define AMS_DELTA_LATCH2_NAND_NWP 0x0010
50 #define AMS_DELTA_LATCH2_NAND_NWE 0x0020
51 #define AMS_DELTA_LATCH2_NAND_ALE 0x0040
52 #define AMS_DELTA_LATCH2_NAND_CLE 0x0080
53 #define AMD_DELTA_LATCH2_KEYBRD_PWR 0x0100
54 #define AMD_DELTA_LATCH2_KEYBRD_DATA 0x0200
55 #define AMD_DELTA_LATCH2_SCARD_RSTIN 0x0400
56 #define AMD_DELTA_LATCH2_SCARD_CMDVCC 0x0800
57 #define AMS_DELTA_LATCH2_MODEM_NRESET 0x1000
58 #define AMS_DELTA_LATCH2_MODEM_CODEC 0x2000
60 #define AMS_DELTA_GPIO_PIN_KEYBRD_DATA 0
61 #define AMS_DELTA_GPIO_PIN_KEYBRD_CLK 1
62 #define AMS_DELTA_GPIO_PIN_MODEM_IRQ 2
63 #define AMS_DELTA_GPIO_PIN_HOOK_SWITCH 4
64 #define AMS_DELTA_GPIO_PIN_SCARD_NOFF 6
65 #define AMS_DELTA_GPIO_PIN_SCARD_IO 7
66 #define AMS_DELTA_GPIO_PIN_CONFIG 11
67 #define AMS_DELTA_GPIO_PIN_NAND_RB 12
70 void ams_delta_latch1_write(u8 mask, u8 value);
71 void ams_delta_latch2_write(u16 mask, u16 value);
74 #endif /* CONFIG_MACH_AMS_DELTA */
76 #endif /* __ASM_ARCH_OMAP_AMS_DELTA_H */