aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-omap/omap16xx.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/arch-omap/omap16xx.h')
-rw-r--r--include/asm-arm/arch-omap/omap16xx.h187
1 files changed, 187 insertions, 0 deletions
diff --git a/include/asm-arm/arch-omap/omap16xx.h b/include/asm-arm/arch-omap/omap16xx.h
new file mode 100644
index 000000000000..88b1fe43ae9e
--- /dev/null
+++ b/include/asm-arm/arch-omap/omap16xx.h
@@ -0,0 +1,187 @@
1/* linux/include/asm-arm/arch-omap/omap16xx.h
2 *
3 * Hardware definitions for TI OMAP1610/5912/1710 processors.
4 *
5 * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
11 *
12 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
13 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
15 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
16 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
17 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
18 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
21 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 *
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 675 Mass Ave, Cambridge, MA 02139, USA.
26 */
27
28#ifndef __ASM_ARCH_OMAP16XX_H
29#define __ASM_ARCH_OMAP16XX_H
30
31/*
32 * ----------------------------------------------------------------------------
33 * Base addresses
34 * ----------------------------------------------------------------------------
35 */
36
37/* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */
38
39#define OMAP16XX_SRAM_BASE 0xD0000000
40#define OMAP1610_SRAM_SIZE (SZ_16K)
41#define OMAP5912_SRAM_SIZE 0x3E800
42#define OMAP16XX_SRAM_START 0x20000000
43
44#define OMAP16XX_DSP_BASE 0xE0000000
45#define OMAP16XX_DSP_SIZE 0x28000
46#define OMAP16XX_DSP_START 0xE0000000
47
48#define OMAP16XX_DSPREG_BASE 0xE1000000
49#define OMAP16XX_DSPREG_SIZE SZ_128K
50#define OMAP16XX_DSPREG_START 0xE1000000
51
52/*
53 * ----------------------------------------------------------------------------
54 * Memory used by power management
55 * ----------------------------------------------------------------------------
56 */
57
58#define OMAP1610_SRAM_IDLE_SUSPEND (OMAP16XX_SRAM_BASE + OMAP1610_SRAM_SIZE - 0x200)
59#define OMAP1610_SRAM_API_SUSPEND (OMAP1610_SRAM_IDLE_SUSPEND + 0x100)
60#define OMAP5912_SRAM_IDLE_SUSPEND (OMAP16XX_SRAM_BASE + OMAP5912_SRAM_SIZE - 0x200)
61#define OMAP5912_SRAM_API_SUSPEND (OMAP5912_SRAM_IDLE_SUSPEND + 0x100)
62
63/*
64 * ---------------------------------------------------------------------------
65 * Interrupts
66 * ---------------------------------------------------------------------------
67 */
68#define OMAP_IH2_0_BASE (0xfffe0000)
69#define OMAP_IH2_1_BASE (0xfffe0100)
70#define OMAP_IH2_2_BASE (0xfffe0200)
71#define OMAP_IH2_3_BASE (0xfffe0300)
72
73#define OMAP_IH2_0_ITR (OMAP_IH2_0_BASE + 0x00)
74#define OMAP_IH2_0_MIR (OMAP_IH2_0_BASE + 0x04)
75#define OMAP_IH2_0_SIR_IRQ (OMAP_IH2_0_BASE + 0x10)
76#define OMAP_IH2_0_SIR_FIQ (OMAP_IH2_0_BASE + 0x14)
77#define OMAP_IH2_0_CONTROL (OMAP_IH2_0_BASE + 0x18)
78#define OMAP_IH2_0_ILR0 (OMAP_IH2_0_BASE + 0x1c)
79#define OMAP_IH2_0_ISR (OMAP_IH2_0_BASE + 0x9c)
80
81#define OMAP_IH2_1_ITR (OMAP_IH2_1_BASE + 0x00)
82#define OMAP_IH2_1_MIR (OMAP_IH2_1_BASE + 0x04)
83#define OMAP_IH2_1_SIR_IRQ (OMAP_IH2_1_BASE + 0x10)
84#define OMAP_IH2_1_SIR_FIQ (OMAP_IH2_1_BASE + 0x14)
85#define OMAP_IH2_1_CONTROL (OMAP_IH2_1_BASE + 0x18)
86#define OMAP_IH2_1_ILR1 (OMAP_IH2_1_BASE + 0x1c)
87#define OMAP_IH2_1_ISR (OMAP_IH2_1_BASE + 0x9c)
88
89#define OMAP_IH2_2_ITR (OMAP_IH2_2_BASE + 0x00)
90#define OMAP_IH2_2_MIR (OMAP_IH2_2_BASE + 0x04)
91#define OMAP_IH2_2_SIR_IRQ (OMAP_IH2_2_BASE + 0x10)
92#define OMAP_IH2_2_SIR_FIQ (OMAP_IH2_2_BASE + 0x14)
93#define OMAP_IH2_2_CONTROL (OMAP_IH2_2_BASE + 0x18)
94#define OMAP_IH2_2_ILR2 (OMAP_IH2_2_BASE + 0x1c)
95#define OMAP_IH2_2_ISR (OMAP_IH2_2_BASE + 0x9c)
96
97#define OMAP_IH2_3_ITR (OMAP_IH2_3_BASE + 0x00)
98#define OMAP_IH2_3_MIR (OMAP_IH2_3_BASE + 0x04)
99#define OMAP_IH2_3_SIR_IRQ (OMAP_IH2_3_BASE + 0x10)
100#define OMAP_IH2_3_SIR_FIQ (OMAP_IH2_3_BASE + 0x14)
101#define OMAP_IH2_3_CONTROL (OMAP_IH2_3_BASE + 0x18)
102#define OMAP_IH2_3_ILR3 (OMAP_IH2_3_BASE + 0x1c)
103#define OMAP_IH2_3_ISR (OMAP_IH2_3_BASE + 0x9c)
104
105/*
106 * ----------------------------------------------------------------------------
107 * Clocks
108 * ----------------------------------------------------------------------------
109 */
110#define OMAP16XX_ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24)
111
112/*
113 * ----------------------------------------------------------------------------
114 * Pin configuration registers
115 * ----------------------------------------------------------------------------
116 */
117#define OMAP16XX_CONF_VOLTAGE_VDDSHV6 (1 << 8)
118#define OMAP16XX_CONF_VOLTAGE_VDDSHV7 (1 << 9)
119#define OMAP16XX_CONF_VOLTAGE_VDDSHV8 (1 << 10)
120#define OMAP16XX_CONF_VOLTAGE_VDDSHV9 (1 << 11)
121#define OMAP16XX_SUBLVDS_CONF_VALID (1 << 13)
122
123/*
124 * ----------------------------------------------------------------------------
125 * System control registers
126 * ----------------------------------------------------------------------------
127 */
128#define OMAP1610_RESET_CONTROL 0xfffe1140
129
130/*
131 * ---------------------------------------------------------------------------
132 * TIPB bus interface
133 * ---------------------------------------------------------------------------
134 */
135#define TIPB_SWITCH_BASE (0xfffbc800)
136#define OMAP16XX_MMCSD2_SSW_MPU_CONF (TIPB_SWITCH_BASE + 0x160)
137
138/* UART3 Registers Maping through MPU bus */
139#define UART3_RHR (OMAP_UART3_BASE + 0)
140#define UART3_THR (OMAP_UART3_BASE + 0)
141#define UART3_DLL (OMAP_UART3_BASE + 0)
142#define UART3_IER (OMAP_UART3_BASE + 4)
143#define UART3_DLH (OMAP_UART3_BASE + 4)
144#define UART3_IIR (OMAP_UART3_BASE + 8)
145#define UART3_FCR (OMAP_UART3_BASE + 8)
146#define UART3_EFR (OMAP_UART3_BASE + 8)
147#define UART3_LCR (OMAP_UART3_BASE + 0x0C)
148#define UART3_MCR (OMAP_UART3_BASE + 0x10)
149#define UART3_XON1_ADDR1 (OMAP_UART3_BASE + 0x10)
150#define UART3_XON2_ADDR2 (OMAP_UART3_BASE + 0x14)
151#define UART3_LSR (OMAP_UART3_BASE + 0x14)
152#define UART3_TCR (OMAP_UART3_BASE + 0x18)
153#define UART3_MSR (OMAP_UART3_BASE + 0x18)
154#define UART3_XOFF1 (OMAP_UART3_BASE + 0x18)
155#define UART3_XOFF2 (OMAP_UART3_BASE + 0x1C)
156#define UART3_SPR (OMAP_UART3_BASE + 0x1C)
157#define UART3_TLR (OMAP_UART3_BASE + 0x1C)
158#define UART3_MDR1 (OMAP_UART3_BASE + 0x20)
159#define UART3_MDR2 (OMAP_UART3_BASE + 0x24)
160#define UART3_SFLSR (OMAP_UART3_BASE + 0x28)
161#define UART3_TXFLL (OMAP_UART3_BASE + 0x28)
162#define UART3_RESUME (OMAP_UART3_BASE + 0x2C)
163#define UART3_TXFLH (OMAP_UART3_BASE + 0x2C)
164#define UART3_SFREGL (OMAP_UART3_BASE + 0x30)
165#define UART3_RXFLL (OMAP_UART3_BASE + 0x30)
166#define UART3_SFREGH (OMAP_UART3_BASE + 0x34)
167#define UART3_RXFLH (OMAP_UART3_BASE + 0x34)
168#define UART3_BLR (OMAP_UART3_BASE + 0x38)
169#define UART3_ACREG (OMAP_UART3_BASE + 0x3C)
170#define UART3_DIV16 (OMAP_UART3_BASE + 0x3C)
171#define UART3_SCR (OMAP_UART3_BASE + 0x40)
172#define UART3_SSR (OMAP_UART3_BASE + 0x44)
173#define UART3_EBLR (OMAP_UART3_BASE + 0x48)
174#define UART3_OSC_12M_SEL (OMAP_UART3_BASE + 0x4C)
175#define UART3_MVR (OMAP_UART3_BASE + 0x50)
176
177/*
178 * ----------------------------------------------------------------------------
179 * Pulse-Width Light
180 * ----------------------------------------------------------------------------
181 */
182#define OMAP16XX_PWL_BASE (0xfffb5800)
183#define OMAP16XX_PWL_ENABLE (OMAP16XX_PWL_BASE + 0x00)
184#define OMAP16XX_PWL_CLK_ENABLE (OMAP16XX_PWL_BASE + 0x04)
185
186#endif /* __ASM_ARCH_OMAP16XX_H */
187