[ARM] 5466/1: Freescale STMP platform support [5/10]
[pandora-kernel.git] / arch / arm / plat-stmp3xxx / include / mach / platform.h
1 /*
2  * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.
3  * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved.
4  */
5
6 /*
7  * The code contained herein is licensed under the GNU General Public
8  * License. You may obtain a copy of the GNU General Public License
9  * Version 2 or later at the following locations:
10  *
11  * http://www.opensource.org/licenses/gpl-license.html
12  * http://www.gnu.org/copyleft/gpl.html
13  */
14 #ifndef __ASM_PLAT_PLATFORM_H
15 #define __ASM_PLAT_PLATFORM_H
16
17 #include <asm/sizes.h>
18
19 /* Virtual address where registers are mapped */
20 #define STMP3XXX_REGS_PHBASE    0x80000000
21 #ifdef __ASSEMBLER__
22 #define STMP3XXX_REGS_BASE      0xF0000000
23 #else
24 #define STMP3XXX_REGS_BASE      (void __iomem *)0xF0000000
25 #endif
26 #define STMP3XXX_REGS_SIZE      SZ_1M
27
28 /* Virtual address where OCRAM is mapped */
29 #define STMP3XXX_OCRAM_PHBASE   0x00000000
30 #ifdef __ASSEMBLER__
31 #define STMP3XXX_OCRAM_BASE     0xf1000000
32 #else
33 #define STMP3XXX_OCRAM_BASE     (void __iomem *)0xf1000000
34 #endif
35 #define STMP3XXX_OCRAM_SIZE     (32 * SZ_1K)
36
37 #ifdef CONFIG_ARCH_STMP37XX
38 #define IRQ_PRIORITY_REG_RD     HW_ICOLL_PRIORITYn_RD
39 #define IRQ_PRIORITY_REG_WR     HW_ICOLL_PRIORITYn_WR
40 #endif
41
42 #ifdef CONFIG_ARCH_STMP378X
43 #define IRQ_PRIORITY_REG_RD     HW_ICOLL_INTERRUPTn_RD
44 #define IRQ_PRIORITY_REG_WR     HW_ICOLL_INTERRUPTn_WR
45 #endif
46
47 #endif /* __ASM_ARCH_PLATFORM_H */