]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/arm/plat-omap/include/mach/board-h4.h
ARM: OMAP: No need to include board-apollon.h from hardware.h
[linux-2.6-omap-h63xx.git] / arch / arm / plat-omap / include / mach / board-h4.h
1 /*
2  * arch/arm/plat-omap/include/mach/board-h4.h
3  *
4  * Hardware definitions for TI OMAP2420 H4 board.
5  *
6  * Initial creation by Dirk Behme <dirk.behme@de.bosch.com>
7  *
8  * This program is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU General Public License as published by the
10  * Free Software Foundation; either version 2 of the License, or (at your
11  * option) any later version.
12  *
13  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
14  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
15  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
16  * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
19  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program; if not, write to the Free Software Foundation, Inc.,
26  * 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28
29 #ifndef __ASM_ARCH_OMAP_H4_H
30 #define __ASM_ARCH_OMAP_H4_H
31
32 /* MMC Prototypes */
33 extern void h4_mmc_init(void);
34
35 /* Placeholder for H4 specific defines */
36 #define OMAP24XX_ETHR_GPIO_IRQ          92
37
38 /* FPGA on debug board has 32 GPIOs:  16 dedicated to leds,
39  * 8 outputs on a header, and 6 inputs from a DIP switch.
40  */
41 #define H4_DEBUG_GPIO_BASE              OMAP_MAX_GPIO_LINES
42 #       define H4_DEBUG_GPIO_SW3_1      (H4_DEBUG_GPIO_BASE + 24)
43 #       define H4_DEBUG_GPIO_SW3_2      (H4_DEBUG_GPIO_BASE + 25)
44 #       define H4_DEBUG_GPIO_SW3_3      (H4_DEBUG_GPIO_BASE + 26)
45 #       define H4_DEBUG_GPIO_SW3_4      (H4_DEBUG_GPIO_BASE + 27)
46 #       define H4_DEBUG_GPIO_SW3_5      (H4_DEBUG_GPIO_BASE + 28)
47 #       define H4_DEBUG_GPIO_SW3_8      (H4_DEBUG_GPIO_BASE + 29)
48
49 /* H4 baseboard has 3 PCF8574 (8 bit) I2C GPIO expanders */
50 #define H4_U191_GPIO_BASE               (H4_DEBUG_GPIO_BASE + 32)
51 #       define H4_GPIO_IRDA_FIRSEL      (H4_U191_GPIO_BASE + 0)
52 #       define H4_GPIO_MODEM_MOD_EN     (H4_U191_GPIO_BASE + 1)
53 #       define H4_GPIO_WLAN_MOD_EN      (H4_U191_GPIO_BASE + 2)
54 #       define H4_GPIO_CAM_MODULE_EN    (H4_U191_GPIO_BASE + 3)
55 #       define H4_GPIO_HANDSET_EN       (H4_U191_GPIO_BASE + 4)
56 #       define H4_GPIO_LCD_ENBKL        (H4_U191_GPIO_BASE + 5)
57 #       define H4_GPIO_AUDIO_ENVDD      (H4_U191_GPIO_BASE + 6)
58 #       define H4_GPIO_LCD_ENVDD        (H4_U191_GPIO_BASE + 7)
59
60 #define H4_U192_GPIO_BASE               (H4_U191_GPIO_BASE + 8)
61 #       define H4_GPIO_IRDA_AGPSn       (H4_U192_GPIO_BASE + 0)
62 #       define H4_GPIO_AGPS_PWREN       (H4_U192_GPIO_BASE + 1)
63 #       define H4_GPIO_AGPS_RSTn        (H4_U192_GPIO_BASE + 2)
64 #       define H4_GPIO_AGPS_SLEEP       (H4_U192_GPIO_BASE + 3)
65 #       define H4_GPIO_AGPS_PA_XMT      (H4_U192_GPIO_BASE + 4)
66 #       define H4_GPIO_MODEM_SPR2       (H4_U192_GPIO_BASE + 5)
67 #       define H4_GPIO_MODEM_SPR1       (H4_U192_GPIO_BASE + 6)
68 #       define H4_GPIO_BT_ACLK_ENn      (H4_U192_GPIO_BASE + 7)
69
70 #define H4_U193_GPIO_BASE               (H4_U192_GPIO_BASE + 8)
71 #       define H4_GPIO_SPR0             (H4_U193_GPIO_BASE + 0)
72 #       define H4_GPIO_SPR1             (H4_U193_GPIO_BASE + 1)
73 #       define H4_GPIO_WLAN_SHUTDOWN    (H4_U193_GPIO_BASE + 2)
74 #       define H4_GPIO_WLAN_RESET       (H4_U193_GPIO_BASE + 3)
75 #       define H4_GPIO_WLAN_CLK_ENn     (H4_U193_GPIO_BASE + 4)
76         /* 5, 6 not connected */
77 #       define H4_GPIO_CAM_RST          (H4_U193_GPIO_BASE + 7)
78
79 #endif /*  __ASM_ARCH_OMAP_H4_H */
80