diff options
Diffstat (limited to 'include/asm-arm/arch-omap/omap24xx.h')
-rw-r--r-- | include/asm-arm/arch-omap/omap24xx.h | 96 |
1 files changed, 79 insertions, 17 deletions
diff --git a/include/asm-arm/arch-omap/omap24xx.h b/include/asm-arm/arch-omap/omap24xx.h index 14c0f9496579..b9fcaae287c8 100644 --- a/include/asm-arm/arch-omap/omap24xx.h +++ b/include/asm-arm/arch-omap/omap24xx.h | |||
@@ -1,3 +1,28 @@ | |||
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 | |||
1 | #ifndef __ASM_ARCH_OMAP24XX_H | 26 | #ifndef __ASM_ARCH_OMAP24XX_H |
2 | #define __ASM_ARCH_OMAP24XX_H | 27 | #define __ASM_ARCH_OMAP24XX_H |
3 | 28 | ||
@@ -13,33 +38,70 @@ | |||
13 | 38 | ||
14 | /* interrupt controller */ | 39 | /* interrupt controller */ |
15 | #define OMAP24XX_IC_BASE (L4_24XX_BASE + 0xfe000) | 40 | #define OMAP24XX_IC_BASE (L4_24XX_BASE + 0xfe000) |
16 | #define VA_IC_BASE IO_ADDRESS(OMAP24XX_IC_BASE) | ||
17 | #define OMAP24XX_IVA_INTC_BASE 0x40000000 | 41 | #define OMAP24XX_IVA_INTC_BASE 0x40000000 |
18 | #define IRQ_SIR_IRQ 0x0040 | 42 | #define IRQ_SIR_IRQ 0x0040 |
19 | 43 | ||
20 | #ifdef CONFIG_ARCH_OMAP2420 | 44 | #define OMAP2420_CTRL_BASE L4_24XX_BASE |
21 | #define OMAP24XX_32KSYNCT_BASE (L4_24XX_BASE + 0x4000) | 45 | #define OMAP2420_32KSYNCT_BASE (L4_24XX_BASE + 0x4000) |
22 | #define OMAP24XX_PRCM_BASE (L4_24XX_BASE + 0x8000) | 46 | #define OMAP2420_PRCM_BASE (L4_24XX_BASE + 0x8000) |
23 | #define OMAP24XX_SDRC_BASE (L3_24XX_BASE + 0x9000) | 47 | #define OMAP2420_CM_BASE (L4_24XX_BASE + 0x8000) |
24 | #define OMAP242X_CONTROL_STATUS (L4_24XX_BASE + 0x2f8) | 48 | #define OMAP2420_PRM_BASE OMAP2420_CM_BASE |
25 | #endif | 49 | #define OMAP2420_SDRC_BASE (L3_24XX_BASE + 0x9000) |
50 | #define OMAP2420_SMS_BASE 0x68008000 | ||
26 | 51 | ||
27 | #ifdef CONFIG_ARCH_OMAP2430 | 52 | #define OMAP2430_32KSYNCT_BASE (L4_WK_243X_BASE + 0x20000) |
28 | #define OMAP24XX_32KSYNCT_BASE (L4_WK_243X_BASE + 0x20000) | 53 | #define OMAP2430_PRCM_BASE (L4_WK_243X_BASE + 0x6000) |
29 | #define OMAP24XX_PRCM_BASE (L4_WK_243X_BASE + 0x6000) | 54 | #define OMAP2430_CM_BASE (L4_WK_243X_BASE + 0x6000) |
30 | #define OMAP24XX_SDRC_BASE (0x6D000000) | 55 | #define OMAP2430_PRM_BASE OMAP2430_CM_BASE |
31 | #define OMAP242X_CONTROL_STATUS (L4_24XX_BASE + 0x2f8) | 56 | |
57 | #define OMAP243X_SMS_BASE 0x6C000000 | ||
58 | #define OMAP243X_SDRC_BASE 0x6D000000 | ||
32 | #define OMAP243X_GPMC_BASE 0x6E000000 | 59 | #define OMAP243X_GPMC_BASE 0x6E000000 |
33 | #endif | 60 | #define OMAP243X_SCM_BASE (L4_WK_243X_BASE + 0x2000) |
61 | #define OMAP243X_CTRL_BASE OMAP243X_SCM_BASE | ||
62 | #define OMAP243X_HS_BASE (L4_24XX_BASE + 0x000ac000) | ||
34 | 63 | ||
35 | /* DSP SS */ | 64 | /* DSP SS */ |
36 | #define OMAP24XX_DSP_BASE 0x58000000 | 65 | #define OMAP2420_DSP_BASE 0x58000000 |
37 | #define OMAP24XX_DSP_MEM_BASE (OMAP24XX_DSP_BASE + 0x0) | 66 | #define OMAP2420_DSP_MEM_BASE (OMAP2420_DSP_BASE + 0x0) |
38 | #define OMAP24XX_DSP_IPI_BASE (OMAP24XX_DSP_BASE + 0x1000000) | 67 | #define OMAP2420_DSP_IPI_BASE (OMAP2420_DSP_BASE + 0x1000000) |
39 | #define OMAP24XX_DSP_MMU_BASE (OMAP24XX_DSP_BASE + 0x2000000) | 68 | #define OMAP2420_DSP_MMU_BASE (OMAP2420_DSP_BASE + 0x2000000) |
69 | |||
70 | #define OMAP243X_DSP_BASE 0x5C000000 | ||
71 | #define OMAP243X_DSP_MEM_BASE (OMAP243X_DSP_BASE + 0x0) | ||
72 | #define OMAP243X_DSP_MMU_BASE (OMAP243X_DSP_BASE + 0x1000000) | ||
40 | 73 | ||
41 | /* Mailbox */ | 74 | /* Mailbox */ |
42 | #define OMAP24XX_MAILBOX_BASE (L4_24XX_BASE + 0x94000) | 75 | #define OMAP24XX_MAILBOX_BASE (L4_24XX_BASE + 0x94000) |
43 | 76 | ||
77 | /* Camera */ | ||
78 | #define OMAP24XX_CAMERA_BASE (L4_24XX_BASE + 0x52000) | ||
79 | |||
80 | /* Security */ | ||
81 | #define OMAP24XX_SEC_BASE (L4_24XX_BASE + 0xA0000) | ||
82 | #define OMAP24XX_SEC_RNG_BASE (OMAP24XX_SEC_BASE + 0x0000) | ||
83 | #define OMAP24XX_SEC_DES_BASE (OMAP24XX_SEC_BASE + 0x2000) | ||
84 | #define OMAP24XX_SEC_SHA1MD5_BASE (OMAP24XX_SEC_BASE + 0x4000) | ||
85 | #define OMAP24XX_SEC_AES_BASE (OMAP24XX_SEC_BASE + 0x6000) | ||
86 | #define OMAP24XX_SEC_PKA_BASE (OMAP24XX_SEC_BASE + 0x8000) | ||
87 | |||
88 | #if defined(CONFIG_ARCH_OMAP2420) | ||
89 | |||
90 | #define OMAP2_32KSYNCT_BASE OMAP2420_32KSYNCT_BASE | ||
91 | #define OMAP2_PRCM_BASE OMAP2420_PRCM_BASE | ||
92 | #define OMAP2_CM_BASE OMAP2420_CM_BASE | ||
93 | #define OMAP2_PRM_BASE OMAP2420_PRM_BASE | ||
94 | #define OMAP2_VA_IC_BASE IO_ADDRESS(OMAP24XX_IC_BASE) | ||
95 | |||
96 | #elif defined(CONFIG_ARCH_OMAP2430) | ||
97 | |||
98 | #define OMAP2_32KSYNCT_BASE OMAP2430_32KSYNCT_BASE | ||
99 | #define OMAP2_PRCM_BASE OMAP2430_PRCM_BASE | ||
100 | #define OMAP2_CM_BASE OMAP2430_CM_BASE | ||
101 | #define OMAP2_PRM_BASE OMAP2430_PRM_BASE | ||
102 | #define OMAP2_VA_IC_BASE IO_ADDRESS(OMAP24XX_IC_BASE) | ||
103 | |||
104 | #endif | ||
105 | |||
44 | #endif /* __ASM_ARCH_OMAP24XX_H */ | 106 | #endif /* __ASM_ARCH_OMAP24XX_H */ |
45 | 107 | ||