MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / include / asm-arm / arch-omap / omap1610.h
blob6b36752f415080cf8dd4bb30a242ae7d0d7ff617
1 /* linux/include/asm-arm/arch-omap/omap1610.h
3 * Hardware definitions for TI OMAP1610 processor.
5 * Cleanup for Linux-2.6 by Dirk Behme <dirk.behme@de.bosch.com>
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.
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.
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.
28 #ifndef __ASM_ARCH_OMAP1610_H
29 #define __ASM_ARCH_OMAP1610_H
32 * ----------------------------------------------------------------------------
33 * Base addresses
34 * ----------------------------------------------------------------------------
37 /* Syntax: XX_BASE = Virtual base address, XX_START = Physical base address */
39 #define OMAP1610_SRAM_BASE 0xD0000000
40 #define OMAP1610_SRAM_SIZE (SZ_16K)
41 #define OMAP1610_SRAM_START 0x20000000
43 #define OMAP1610_DSP_BASE 0xE0000000
44 #define OMAP1610_DSP_SIZE 0x28000
45 #define OMAP1610_DSP_START 0xE0000000
47 #define OMAP1610_DSPREG_BASE 0xE1000000
48 #define OMAP1610_DSPREG_SIZE SZ_128K
49 #define OMAP1610_DSPREG_START 0xE1000000
52 * ----------------------------------------------------------------------------
53 * Memory used by power management
54 * ----------------------------------------------------------------------------
57 #define OMAP1610_SRAM_IDLE_SUSPEND (OMAP1610_SRAM_BASE + OMAP1610_SRAM_SIZE - 0x200)
58 #define OMAP1610_SRAM_API_SUSPEND (OMAP1610_SRAM_IDLE_SUSPEND + 0x100)
61 * ---------------------------------------------------------------------------
62 * Interrupts
63 * ---------------------------------------------------------------------------
65 #define OMAP_IH2_0_BASE (0xfffe0000)
66 #define OMAP_IH2_1_BASE (0xfffe0100)
67 #define OMAP_IH2_2_BASE (0xfffe0200)
68 #define OMAP_IH2_3_BASE (0xfffe0300)
70 #define OMAP_IH2_0_ITR (OMAP_IH2_0_BASE + 0x00)
71 #define OMAP_IH2_0_MIR (OMAP_IH2_0_BASE + 0x04)
72 #define OMAP_IH2_0_SIR_IRQ (OMAP_IH2_0_BASE + 0x10)
73 #define OMAP_IH2_0_SIR_FIQ (OMAP_IH2_0_BASE + 0x14)
74 #define OMAP_IH2_0_CONTROL (OMAP_IH2_0_BASE + 0x18)
75 #define OMAP_IH2_0_ILR0 (OMAP_IH2_0_BASE + 0x1c)
76 #define OMAP_IH2_0_ISR (OMAP_IH2_0_BASE + 0x9c)
78 #define OMAP_IH2_1_ITR (OMAP_IH2_1_BASE + 0x00)
79 #define OMAP_IH2_1_MIR (OMAP_IH2_1_BASE + 0x04)
80 #define OMAP_IH2_1_SIR_IRQ (OMAP_IH2_1_BASE + 0x10)
81 #define OMAP_IH2_1_SIR_FIQ (OMAP_IH2_1_BASE + 0x14)
82 #define OMAP_IH2_1_CONTROL (OMAP_IH2_1_BASE + 0x18)
83 #define OMAP_IH2_1_ILR1 (OMAP_IH2_1_BASE + 0x1c)
84 #define OMAP_IH2_1_ISR (OMAP_IH2_1_BASE + 0x9c)
86 #define OMAP_IH2_2_ITR (OMAP_IH2_2_BASE + 0x00)
87 #define OMAP_IH2_2_MIR (OMAP_IH2_2_BASE + 0x04)
88 #define OMAP_IH2_2_SIR_IRQ (OMAP_IH2_2_BASE + 0x10)
89 #define OMAP_IH2_2_SIR_FIQ (OMAP_IH2_2_BASE + 0x14)
90 #define OMAP_IH2_2_CONTROL (OMAP_IH2_2_BASE + 0x18)
91 #define OMAP_IH2_2_ILR2 (OMAP_IH2_2_BASE + 0x1c)
92 #define OMAP_IH2_2_ISR (OMAP_IH2_2_BASE + 0x9c)
94 #define OMAP_IH2_3_ITR (OMAP_IH2_3_BASE + 0x00)
95 #define OMAP_IH2_3_MIR (OMAP_IH2_3_BASE + 0x04)
96 #define OMAP_IH2_3_SIR_IRQ (OMAP_IH2_3_BASE + 0x10)
97 #define OMAP_IH2_3_SIR_FIQ (OMAP_IH2_3_BASE + 0x14)
98 #define OMAP_IH2_3_CONTROL (OMAP_IH2_3_BASE + 0x18)
99 #define OMAP_IH2_3_ILR3 (OMAP_IH2_3_BASE + 0x1c)
100 #define OMAP_IH2_3_ISR (OMAP_IH2_3_BASE + 0x9c)
103 * ----------------------------------------------------------------------------
104 * Clocks
105 * ----------------------------------------------------------------------------
107 #define OMAP1610_ARM_IDLECT3 (CLKGEN_REG_BASE + 0x24)
110 * ----------------------------------------------------------------------------
111 * Pin configuration registers
112 * ----------------------------------------------------------------------------
114 #define OMAP1610_CONF_VOLTAGE_VDDSHV6 (1 << 8)
115 #define OMAP1610_CONF_VOLTAGE_VDDSHV7 (1 << 9)
116 #define OMAP1610_CONF_VOLTAGE_VDDSHV8 (1 << 10)
117 #define OMAP1610_CONF_VOLTAGE_VDDSHV9 (1 << 11)
118 #define OMAP1610_SUBLVDS_CONF_VALID (1 << 13)
121 * ---------------------------------------------------------------------------
122 * TIPB bus interface
123 * ---------------------------------------------------------------------------
125 #define TIPB_SWITCH_BASE (0xfffbc800)
126 #define OMAP1610_MMCSD2_SSW_MPU_CONF (TIPB_SWITCH_BASE + 0x160)
128 #endif /* __ASM_ARCH_OMAP1610_H */