This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / asm-arm / arch-omap / board-ams-delta.h
1 /*
2  * linux/include/asm-arm/arch-omap/board-ams-delta.h
3  *
4  * Copyright (C) 2006 Jonathan McDowell <noodles@earth.li>
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 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
37
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
44
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 AMS_DELTA_LATCH2_MODEM_NRESET   0x1000
54 #define AMS_DELTA_LATCH2_MODEM_CODEC    0x2000
55
56 #define AMS_DELTA_GPIO_PIN_NAND_RB      12
57
58 #ifndef __ASSEMBLY__
59 void ams_delta_latch1_write(u8 mask, u8 value);
60 void ams_delta_latch2_write(u16 mask, u16 value);
61 #endif
62
63 #endif /* CONFIG_MACH_AMS_DELTA */
64
65 #endif /* __ASM_ARCH_OMAP_AMS_DELTA_H */