]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/asm-arm/arch-omap/omap24xx.h
e552ce8c5bfe6dd7ce73895b980660a86a3bf2ac
[linux-2.6-omap-h63xx.git] / include / asm-arm / arch-omap / omap24xx.h
1 /*
2  * include/asm-arm/arch-omap/omap24xx.h
3  *
4  * This file contains the processor specific definitions
5  * of the TI OMAP24XX.
6  *
7  * Copyright (C) 2007 Texas Instruments.
8  * Copyright (C) 2007 Nokia Corporation.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23  *
24  */
25
26 #ifndef __ASM_ARCH_OMAP24XX_H
27 #define __ASM_ARCH_OMAP24XX_H
28
29 /*
30  * Please place only base defines here and put the rest in device
31  * specific headers. Note also that some of these defines are needed
32  * for omap1 to compile without adding ifdefs.
33  */
34
35 #define L4_24XX_BASE            0x48000000
36 #define L4_WK_243X_BASE         0x49000000
37 #define L3_24XX_BASE            0x68000000
38
39 /* interrupt controller */
40 #define OMAP24XX_IC_BASE        (L4_24XX_BASE + 0xfe000)
41 #define OMAP24XX_IVA_INTC_BASE  0x40000000
42 #define IRQ_SIR_IRQ             0x0040
43
44 #define OMAP24XX_CONTROL_DEVCONF        (L4_24XX_BASE + 0x274)
45 #define OMAP24XX_CONTROL_STATUS (L4_24XX_BASE + 0x2f8)
46
47 #define OMAP2420_CTRL_BASE      L4_24XX_BASE
48 #define OMAP2420_32KSYNCT_BASE  (L4_24XX_BASE + 0x4000)
49 #define OMAP2420_PRCM_BASE      (L4_24XX_BASE + 0x8000)
50 #define OMAP2420_CM_BASE        (L4_24XX_BASE + 0x8000)
51 #define OMAP2420_PRM_BASE       OMAP2420_CM_BASE
52 #define OMAP2420_SDRC_BASE      (L3_24XX_BASE + 0x9000)
53 #define OMAP2420_SMS_BASE       0x68008000
54
55 #define OMAP2430_32KSYNCT_BASE  (L4_WK_243X_BASE + 0x20000)
56 #define OMAP2430_PRCM_BASE      (L4_WK_243X_BASE + 0x6000)
57 #define OMAP2430_CM_BASE        (L4_WK_243X_BASE + 0x6000)
58 #define OMAP2430_PRM_BASE       OMAP2430_CM_BASE
59
60 #define OMAP243X_SMS_BASE       0x6C000000
61 #define OMAP243X_SDRC_BASE      0x6D000000
62 #define OMAP243X_GPMC_BASE      0x6E000000
63 #define OMAP243X_SCM_BASE       (L4_WK_243X_BASE + 0x2000)
64 #define OMAP243X_CTRL_BASE      OMAP243X_SCM_BASE
65 #define OMAP243X_HS_BASE        (L4_24XX_BASE + 0x000ac000)
66
67 /* DSP SS */
68 #define OMAP2420_DSP_BASE       0x58000000
69 #define OMAP2420_DSP_MEM_BASE   (OMAP2420_DSP_BASE + 0x0)
70 #define OMAP2420_DSP_IPI_BASE   (OMAP2420_DSP_BASE + 0x1000000)
71 #define OMAP2420_DSP_MMU_BASE   (OMAP2420_DSP_BASE + 0x2000000)
72
73 #define OMAP243X_DSP_BASE       0x5C000000
74 #define OMAP243X_DSP_MEM_BASE   (OMAP243X_DSP_BASE + 0x0)
75 #define OMAP243X_DSP_MMU_BASE   (OMAP243X_DSP_BASE + 0x1000000)
76
77 /* Mailbox */
78 #define OMAP24XX_MAILBOX_BASE   (L4_24XX_BASE + 0x94000)
79
80 /* Camera */
81 #define OMAP24XX_CAMERA_BASE    (L4_24XX_BASE + 0x52000)
82
83 #if defined(CONFIG_ARCH_OMAP2420)
84
85 #define OMAP2_32KSYNCT_BASE     OMAP2420_32KSYNCT_BASE
86 #define OMAP2_PRCM_BASE         OMAP2420_PRCM_BASE
87 #define OMAP2_CM_BASE           OMAP2420_CM_BASE
88 #define OMAP2_PRM_BASE          OMAP2420_PRM_BASE
89 #define OMAP2_SDRC_BASE         OMAP2420_SDRC_BASE
90 #define OMAP2_SMS_BASE          OMAP2420_SMS_BASE
91 #define OMAP2_L4_BASE           L4_24XX_BASE
92 #define OMAP2_VA_IC_BASE        IO_ADDRESS(OMAP24XX_IC_BASE)
93 #define OMAP2_CTRL_BASE         OMAP2420_CTRL_BASE
94
95 #elif defined(CONFIG_ARCH_OMAP2430)
96
97 #define OMAP2_32KSYNCT_BASE     OMAP2430_32KSYNCT_BASE
98 #define OMAP2_PRCM_BASE         OMAP2430_PRCM_BASE
99 #define OMAP2_CM_BASE           OMAP2430_CM_BASE
100 #define OMAP2_PRM_BASE          OMAP2430_PRM_BASE
101 #define OMAP2_SDRC_BASE         OMAP243X_SDRC_BASE
102 #define OMAP2_SMS_BASE          OMAP243X_SMS_BASE
103 #define OMAP2_L4_BASE           L4_24XX_BASE
104 #define OMAP2_VA_IC_BASE        IO_ADDRESS(OMAP24XX_IC_BASE)
105 #define OMAP2_CTRL_BASE         OMAP243X_CTRL_BASE
106
107 #endif
108
109 #endif /* __ASM_ARCH_OMAP24XX_H */
110