diff options
author | Tony Lindgren <tony@atomide.com> | 2012-08-31 20:04:35 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-09-12 21:06:31 -0400 |
commit | 68cb700c59fae6cd539c9dc1e9f2584f671935a0 (patch) | |
tree | 181ed137e216c7ee8c731eba9dbc4a9e84ef1530 /arch/arm/mach-omap1 | |
parent | c49f34bc25900c3c6638fed0987c9abea3c212ea (diff) |
ARM: OMAP1: Move SoC specific headers from plat to mach for omap1
There's no need to have these in plat-omap any longer. Note that these
could eventually be made local to mach-omap1 instead of being in mach.
But to do that, at least various driver access using omap7xxx.h registers
needs to be fixed first.
Cc: spi-devel-general@lists.sourceforge.net
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/board-htcherald.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/devices.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/hardware.h | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/omap1510.h | 49 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/omap16xx.h | 201 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/omap7xx.h | 106 |
6 files changed, 361 insertions, 5 deletions
diff --git a/arch/arm/mach-omap1/board-htcherald.c b/arch/arm/mach-omap1/board-htcherald.c index b9771b5a5f7b..a5ac352d68d3 100644 --- a/arch/arm/mach-omap1/board-htcherald.c +++ b/arch/arm/mach-omap1/board-htcherald.c | |||
@@ -41,7 +41,7 @@ | |||
41 | #include <asm/mach-types.h> | 41 | #include <asm/mach-types.h> |
42 | #include <asm/mach/arch.h> | 42 | #include <asm/mach/arch.h> |
43 | 43 | ||
44 | #include <plat/omap7xx.h> | 44 | #include <mach/omap7xx.h> |
45 | #include <plat/keypad.h> | 45 | #include <plat/keypad.h> |
46 | #include <plat/mmc.h> | 46 | #include <plat/mmc.h> |
47 | 47 | ||
diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index 1feca354ce08..05fdbd992c77 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c | |||
@@ -23,8 +23,8 @@ | |||
23 | #include <plat/mux.h> | 23 | #include <plat/mux.h> |
24 | #include <plat/dma.h> | 24 | #include <plat/dma.h> |
25 | #include <plat/mmc.h> | 25 | #include <plat/mmc.h> |
26 | #include <plat/omap7xx.h> | ||
27 | 26 | ||
27 | #include <mach/omap7xx.h> | ||
28 | #include <mach/camera.h> | 28 | #include <mach/camera.h> |
29 | #include <mach/hardware.h> | 29 | #include <mach/hardware.h> |
30 | 30 | ||
diff --git a/arch/arm/mach-omap1/include/mach/hardware.h b/arch/arm/mach-omap1/include/mach/hardware.h index bd3b95e1cb02..84248d250adb 100644 --- a/arch/arm/mach-omap1/include/mach/hardware.h +++ b/arch/arm/mach-omap1/include/mach/hardware.h | |||
@@ -311,8 +311,8 @@ static inline u32 omap_cs3_phys(void) | |||
311 | * --------------------------------------------------------------------------- | 311 | * --------------------------------------------------------------------------- |
312 | */ | 312 | */ |
313 | 313 | ||
314 | #include <plat/omap7xx.h> | 314 | #include "omap7xx.h" |
315 | #include <plat/omap1510.h> | 315 | #include "omap1510.h" |
316 | #include <plat/omap16xx.h> | 316 | #include "omap16xx.h" |
317 | 317 | ||
318 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ | 318 | #endif /* __ASM_ARCH_OMAP_HARDWARE_H */ |
diff --git a/arch/arm/mach-omap1/include/mach/omap1510.h b/arch/arm/mach-omap1/include/mach/omap1510.h new file mode 100644 index 000000000000..8fe05d6137c0 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/omap1510.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Hardware definitions for TI OMAP1510 processor. | ||
3 | * | ||
4 | * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com> | ||
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 | |||
27 | #ifndef __ASM_ARCH_OMAP15XX_H | ||
28 | #define __ASM_ARCH_OMAP15XX_H | ||
29 | |||
30 | /* | ||
31 | * ---------------------------------------------------------------------------- | ||
32 | * Base addresses | ||
33 | * ---------------------------------------------------------------------------- | ||
34 | */ | ||
35 | |||
36 | /* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */ | ||
37 | |||
38 | #define OMAP1510_DSP_BASE 0xE0000000 | ||
39 | #define OMAP1510_DSP_SIZE 0x28000 | ||
40 | #define OMAP1510_DSP_START 0xE0000000 | ||
41 | |||
42 | #define OMAP1510_DSPREG_BASE 0xE1000000 | ||
43 | #define OMAP1510_DSPREG_SIZE SZ_128K | ||
44 | #define OMAP1510_DSPREG_START 0xE1000000 | ||
45 | |||
46 | #define OMAP1510_DSP_MMU_BASE (0xfffed200) | ||
47 | |||
48 | #endif /* __ASM_ARCH_OMAP15XX_H */ | ||
49 | |||
diff --git a/arch/arm/mach-omap1/include/mach/omap16xx.h b/arch/arm/mach-omap1/include/mach/omap16xx.h new file mode 100644 index 000000000000..cd1c724869c7 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/omap16xx.h | |||
@@ -0,0 +1,201 @@ | |||
1 | /* | ||
2 | * Hardware definitions for TI OMAP1610/5912/1710 processors. | ||
3 | * | ||
4 | * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com> | ||
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 | |||
27 | #ifndef __ASM_ARCH_OMAP16XX_H | ||
28 | #define __ASM_ARCH_OMAP16XX_H | ||
29 | |||
30 | /* | ||
31 | * ---------------------------------------------------------------------------- | ||
32 | * Base addresses | ||
33 | * ---------------------------------------------------------------------------- | ||
34 | */ | ||
35 | |||
36 | /* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */ | ||
37 | |||
38 | #define OMAP16XX_DSP_BASE 0xE0000000 | ||
39 | #define OMAP16XX_DSP_SIZE 0x28000 | ||
40 | #define OMAP16XX_DSP_START 0xE0000000 | ||
41 | |||
42 | #define OMAP16XX_DSPREG_BASE 0xE1000000 | ||
43 | #define OMAP16XX_DSPREG_SIZE SZ_128K | ||
44 | #define OMAP16XX_DSPREG_START 0xE1000000 | ||
45 | |||
46 | #define OMAP16XX_SEC_BASE 0xFFFE4000 | ||
47 | #define OMAP16XX_SEC_DES (OMAP16XX_SEC_BASE + 0x0000) | ||
48 | #define OMAP16XX_SEC_SHA1MD5 (OMAP16XX_SEC_BASE + 0x0800) | ||
49 | #define OMAP16XX_SEC_RNG (OMAP16XX_SEC_BASE + 0x1000) | ||
50 | |||
51 | /* | ||
52 | * --------------------------------------------------------------------------- | ||
53 | * Interrupts | ||
54 | * --------------------------------------------------------------------------- | ||
55 | */ | ||
56 | #define OMAP_IH2_0_BASE (0xfffe0000) | ||
57 | #define OMAP_IH2_1_BASE (0xfffe0100) | ||
58 | #define OMAP_IH2_2_BASE (0xfffe0200) | ||
59 | #define OMAP_IH2_3_BASE (0xfffe0300) | ||
60 | |||
61 | #define OMAP_IH2_0_ITR (OMAP_IH2_0_BASE + 0x00) | ||
62 | #define OMAP_IH2_0_MIR (OMAP_IH2_0_BASE + 0x04) | ||
63 | #define OMAP_IH2_0_SIR_IRQ (OMAP_IH2_0_BASE + 0x10) | ||
64 | #define OMAP_IH2_0_SIR_FIQ (OMAP_IH2_0_BASE + 0x14) | ||
65 | #define OMAP_IH2_0_CONTROL (OMAP_IH2_0_BASE + 0x18) | ||
66 | #define OMAP_IH2_0_ILR0 (OMAP_IH2_0_BASE + 0x1c) | ||
67 | #define OMAP_IH2_0_ISR (OMAP_IH2_0_BASE + 0x9c) | ||
68 | |||
69 | #define OMAP_IH2_1_ITR (OMAP_IH2_1_BASE + 0x00) | ||
70 | #define OMAP_IH2_1_MIR (OMAP_IH2_1_BASE + 0x04) | ||
71 | #define OMAP_IH2_1_SIR_IRQ (OMAP_IH2_1_BASE + 0x10) | ||
72 | #define OMAP_IH2_1_SIR_FIQ (OMAP_IH2_1_BASE + 0x14) | ||
73 | #define OMAP_IH2_1_CONTROL (OMAP_IH2_1_BASE + 0x18) | ||
74 | #define OMAP_IH2_1_ILR1 (OMAP_IH2_1_BASE + 0x1c) | ||
75 | #define OMAP_IH2_1_ISR (OMAP_IH2_1_BASE + 0x9c) | ||
76 | |||
77 | #define OMAP_IH2_2_ITR (OMAP_IH2_2_BASE + 0x00) | ||
78 | #define OMAP_IH2_2_MIR (OMAP_IH2_2_BASE + 0x04) | ||
79 | #define OMAP_IH2_2_SIR_IRQ (OMAP_IH2_2_BASE + 0x10) | ||
80 | #define OMAP_IH2_2_SIR_FIQ (OMAP_IH2_2_BASE + 0x14) | ||
81 | #define OMAP_IH2_2_CONTROL (OMAP_IH2_2_BASE + 0x18) | ||
82 | #define OMAP_IH2_2_ILR2 (OMAP_IH2_2_BASE + 0x1c) | ||
83 | #define OMAP_IH2_2_ISR (OMAP_IH2_2_BASE + 0x9c) | ||
84 | |||
85 | #define OMAP_IH2_3_ITR (OMAP_IH2_3_BASE + 0x00) | ||
86 | #define OMAP_IH2_3_MIR (OMAP_IH2_3_BASE + 0x04) | ||
87 | #define OMAP_IH2_3_SIR_IRQ (OMAP_IH2_3_BASE + 0x10) | ||
88 | #define OMAP_IH2_3_SIR_FIQ (OMAP_IH2_3_BASE + 0x14) | ||
89 | #define OMAP_IH2_3_CONTROL (OMAP_IH2_3_BASE + 0x18) | ||
90 | #define OMAP_IH2_3_ILR3 (OMAP_IH2_3_BASE + 0x1c) | ||
91 | #define OMAP_IH2_3_ISR (OMAP_IH2_3_BASE + 0x9c) | ||
92 | |||
93 | /* | ||
94 | * ---------------------------------------------------------------------------- | ||
95 | * Clocks | ||
96 | * ---------------------------------------------------------------------------- | ||
97 | */ | ||
98 | #define OMAP16XX_ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24) | ||
99 | |||
100 | /* | ||
101 | * ---------------------------------------------------------------------------- | ||
102 | * Pin configuration registers | ||
103 | * ---------------------------------------------------------------------------- | ||
104 | */ | ||
105 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV6 (1 << 8) | ||
106 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV7 (1 << 9) | ||
107 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV8 (1 << 10) | ||
108 | #define OMAP16XX_CONF_VOLTAGE_VDDSHV9 (1 << 11) | ||
109 | #define OMAP16XX_SUBLVDS_CONF_VALID (1 << 13) | ||
110 | |||
111 | /* | ||
112 | * ---------------------------------------------------------------------------- | ||
113 | * System control registers | ||
114 | * ---------------------------------------------------------------------------- | ||
115 | */ | ||
116 | #define OMAP1610_RESET_CONTROL 0xfffe1140 | ||
117 | |||
118 | /* | ||
119 | * --------------------------------------------------------------------------- | ||
120 | * TIPB bus interface | ||
121 | * --------------------------------------------------------------------------- | ||
122 | */ | ||
123 | #define TIPB_SWITCH_BASE (0xfffbc800) | ||
124 | #define OMAP16XX_MMCSD2_SSW_MPU_CONF (TIPB_SWITCH_BASE + 0x160) | ||
125 | |||
126 | /* UART3 Registers Mapping through MPU bus */ | ||
127 | #define UART3_RHR (OMAP1_UART3_BASE + 0) | ||
128 | #define UART3_THR (OMAP1_UART3_BASE + 0) | ||
129 | #define UART3_DLL (OMAP1_UART3_BASE + 0) | ||
130 | #define UART3_IER (OMAP1_UART3_BASE + 4) | ||
131 | #define UART3_DLH (OMAP1_UART3_BASE + 4) | ||
132 | #define UART3_IIR (OMAP1_UART3_BASE + 8) | ||
133 | #define UART3_FCR (OMAP1_UART3_BASE + 8) | ||
134 | #define UART3_EFR (OMAP1_UART3_BASE + 8) | ||
135 | #define UART3_LCR (OMAP1_UART3_BASE + 0x0C) | ||
136 | #define UART3_MCR (OMAP1_UART3_BASE + 0x10) | ||
137 | #define UART3_XON1_ADDR1 (OMAP1_UART3_BASE + 0x10) | ||
138 | #define UART3_XON2_ADDR2 (OMAP1_UART3_BASE + 0x14) | ||
139 | #define UART3_LSR (OMAP1_UART3_BASE + 0x14) | ||
140 | #define UART3_TCR (OMAP1_UART3_BASE + 0x18) | ||
141 | #define UART3_MSR (OMAP1_UART3_BASE + 0x18) | ||
142 | #define UART3_XOFF1 (OMAP1_UART3_BASE + 0x18) | ||
143 | #define UART3_XOFF2 (OMAP1_UART3_BASE + 0x1C) | ||
144 | #define UART3_SPR (OMAP1_UART3_BASE + 0x1C) | ||
145 | #define UART3_TLR (OMAP1_UART3_BASE + 0x1C) | ||
146 | #define UART3_MDR1 (OMAP1_UART3_BASE + 0x20) | ||
147 | #define UART3_MDR2 (OMAP1_UART3_BASE + 0x24) | ||
148 | #define UART3_SFLSR (OMAP1_UART3_BASE + 0x28) | ||
149 | #define UART3_TXFLL (OMAP1_UART3_BASE + 0x28) | ||
150 | #define UART3_RESUME (OMAP1_UART3_BASE + 0x2C) | ||
151 | #define UART3_TXFLH (OMAP1_UART3_BASE + 0x2C) | ||
152 | #define UART3_SFREGL (OMAP1_UART3_BASE + 0x30) | ||
153 | #define UART3_RXFLL (OMAP1_UART3_BASE + 0x30) | ||
154 | #define UART3_SFREGH (OMAP1_UART3_BASE + 0x34) | ||
155 | #define UART3_RXFLH (OMAP1_UART3_BASE + 0x34) | ||
156 | #define UART3_BLR (OMAP1_UART3_BASE + 0x38) | ||
157 | #define UART3_ACREG (OMAP1_UART3_BASE + 0x3C) | ||
158 | #define UART3_DIV16 (OMAP1_UART3_BASE + 0x3C) | ||
159 | #define UART3_SCR (OMAP1_UART3_BASE + 0x40) | ||
160 | #define UART3_SSR (OMAP1_UART3_BASE + 0x44) | ||
161 | #define UART3_EBLR (OMAP1_UART3_BASE + 0x48) | ||
162 | #define UART3_OSC_12M_SEL (OMAP1_UART3_BASE + 0x4C) | ||
163 | #define UART3_MVR (OMAP1_UART3_BASE + 0x50) | ||
164 | |||
165 | /* | ||
166 | * --------------------------------------------------------------------------- | ||
167 | * Watchdog timer | ||
168 | * --------------------------------------------------------------------------- | ||
169 | */ | ||
170 | |||
171 | /* 32-bit Watchdog timer in OMAP 16XX */ | ||
172 | #define OMAP_16XX_WATCHDOG_BASE (0xfffeb000) | ||
173 | #define OMAP_16XX_WIDR (OMAP_16XX_WATCHDOG_BASE + 0x00) | ||
174 | #define OMAP_16XX_WD_SYSCONFIG (OMAP_16XX_WATCHDOG_BASE + 0x10) | ||
175 | #define OMAP_16XX_WD_SYSSTATUS (OMAP_16XX_WATCHDOG_BASE + 0x14) | ||
176 | #define OMAP_16XX_WCLR (OMAP_16XX_WATCHDOG_BASE + 0x24) | ||
177 | #define OMAP_16XX_WCRR (OMAP_16XX_WATCHDOG_BASE + 0x28) | ||
178 | #define OMAP_16XX_WLDR (OMAP_16XX_WATCHDOG_BASE + 0x2c) | ||
179 | #define OMAP_16XX_WTGR (OMAP_16XX_WATCHDOG_BASE + 0x30) | ||
180 | #define OMAP_16XX_WWPS (OMAP_16XX_WATCHDOG_BASE + 0x34) | ||
181 | #define OMAP_16XX_WSPR (OMAP_16XX_WATCHDOG_BASE + 0x48) | ||
182 | |||
183 | #define WCLR_PRE_SHIFT 5 | ||
184 | #define WCLR_PTV_SHIFT 2 | ||
185 | |||
186 | #define WWPS_W_PEND_WSPR (1 << 4) | ||
187 | #define WWPS_W_PEND_WTGR (1 << 3) | ||
188 | #define WWPS_W_PEND_WLDR (1 << 2) | ||
189 | #define WWPS_W_PEND_WCRR (1 << 1) | ||
190 | #define WWPS_W_PEND_WCLR (1 << 0) | ||
191 | |||
192 | #define WSPR_ENABLE_0 (0x0000bbbb) | ||
193 | #define WSPR_ENABLE_1 (0x00004444) | ||
194 | #define WSPR_DISABLE_0 (0x0000aaaa) | ||
195 | #define WSPR_DISABLE_1 (0x00005555) | ||
196 | |||
197 | #define OMAP16XX_DSP_MMU_BASE (0xfffed200) | ||
198 | #define OMAP16XX_MAILBOX_BASE (0xfffcf000) | ||
199 | |||
200 | #endif /* __ASM_ARCH_OMAP16XX_H */ | ||
201 | |||
diff --git a/arch/arm/mach-omap1/include/mach/omap7xx.h b/arch/arm/mach-omap1/include/mach/omap7xx.h new file mode 100644 index 000000000000..63da994bc609 --- /dev/null +++ b/arch/arm/mach-omap1/include/mach/omap7xx.h | |||
@@ -0,0 +1,106 @@ | |||
1 | /* | ||
2 | * Hardware definitions for TI OMAP7XX processor. | ||
3 | * | ||
4 | * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com> | ||
5 | * Adapted for omap850 by Zebediah C. McClure <zmc@lurian.net> | ||
6 | * Adapted for omap7xx by Alistair Buxton <a.j.buxton@gmail.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_OMAP7XX_H | ||
30 | #define __ASM_ARCH_OMAP7XX_H | ||
31 | |||
32 | /* | ||
33 | * ---------------------------------------------------------------------------- | ||
34 | * Base addresses | ||
35 | * ---------------------------------------------------------------------------- | ||
36 | */ | ||
37 | |||
38 | /* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */ | ||
39 | |||
40 | #define OMAP7XX_DSP_BASE 0xE0000000 | ||
41 | #define OMAP7XX_DSP_SIZE 0x50000 | ||
42 | #define OMAP7XX_DSP_START 0xE0000000 | ||
43 | |||
44 | #define OMAP7XX_DSPREG_BASE 0xE1000000 | ||
45 | #define OMAP7XX_DSPREG_SIZE SZ_128K | ||
46 | #define OMAP7XX_DSPREG_START 0xE1000000 | ||
47 | |||
48 | #define OMAP7XX_SPI1_BASE 0xfffc0800 | ||
49 | #define OMAP7XX_SPI2_BASE 0xfffc1000 | ||
50 | |||
51 | /* | ||
52 | * ---------------------------------------------------------------------------- | ||
53 | * OMAP7XX specific configuration registers | ||
54 | * ---------------------------------------------------------------------------- | ||
55 | */ | ||
56 | #define OMAP7XX_CONFIG_BASE 0xfffe1000 | ||
57 | #define OMAP7XX_IO_CONF_0 0xfffe1070 | ||
58 | #define OMAP7XX_IO_CONF_1 0xfffe1074 | ||
59 | #define OMAP7XX_IO_CONF_2 0xfffe1078 | ||
60 | #define OMAP7XX_IO_CONF_3 0xfffe107c | ||
61 | #define OMAP7XX_IO_CONF_4 0xfffe1080 | ||
62 | #define OMAP7XX_IO_CONF_5 0xfffe1084 | ||
63 | #define OMAP7XX_IO_CONF_6 0xfffe1088 | ||
64 | #define OMAP7XX_IO_CONF_7 0xfffe108c | ||
65 | #define OMAP7XX_IO_CONF_8 0xfffe1090 | ||
66 | #define OMAP7XX_IO_CONF_9 0xfffe1094 | ||
67 | #define OMAP7XX_IO_CONF_10 0xfffe1098 | ||
68 | #define OMAP7XX_IO_CONF_11 0xfffe109c | ||
69 | #define OMAP7XX_IO_CONF_12 0xfffe10a0 | ||
70 | #define OMAP7XX_IO_CONF_13 0xfffe10a4 | ||
71 | |||
72 | #define OMAP7XX_MODE_1 0xfffe1010 | ||
73 | #define OMAP7XX_MODE_2 0xfffe1014 | ||
74 | |||
75 | /* CSMI specials: in terms of base + offset */ | ||
76 | #define OMAP7XX_MODE2_OFFSET 0x14 | ||
77 | |||
78 | /* | ||
79 | * ---------------------------------------------------------------------------- | ||
80 | * OMAP7XX traffic controller configuration registers | ||
81 | * ---------------------------------------------------------------------------- | ||
82 | */ | ||
83 | #define OMAP7XX_FLASH_CFG_0 0xfffecc10 | ||
84 | #define OMAP7XX_FLASH_ACFG_0 0xfffecc50 | ||
85 | #define OMAP7XX_FLASH_CFG_1 0xfffecc14 | ||
86 | #define OMAP7XX_FLASH_ACFG_1 0xfffecc54 | ||
87 | |||
88 | /* | ||
89 | * ---------------------------------------------------------------------------- | ||
90 | * OMAP7XX DSP control registers | ||
91 | * ---------------------------------------------------------------------------- | ||
92 | */ | ||
93 | #define OMAP7XX_ICR_BASE 0xfffbb800 | ||
94 | #define OMAP7XX_DSP_M_CTL 0xfffbb804 | ||
95 | #define OMAP7XX_DSP_MMU_BASE 0xfffed200 | ||
96 | |||
97 | /* | ||
98 | * ---------------------------------------------------------------------------- | ||
99 | * OMAP7XX PCC_UPLD configuration registers | ||
100 | * ---------------------------------------------------------------------------- | ||
101 | */ | ||
102 | #define OMAP7XX_PCC_UPLD_CTRL_BASE (0xfffe0900) | ||
103 | #define OMAP7XX_PCC_UPLD_CTRL (OMAP7XX_PCC_UPLD_CTRL_BASE + 0x00) | ||
104 | |||
105 | #endif /* __ASM_ARCH_OMAP7XX_H */ | ||
106 | |||