diff options
author | Linus Walleij <linus.walleij@stericsson.com> | 2010-07-12 16:53:28 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-27 05:42:38 -0400 |
commit | 1dbd30e9890fd69e50b17edd70ca583546b0fe4e (patch) | |
tree | 5b5ab74c1792a81340478f7bbccd053e60a23a5e /arch/arm/include/asm/memory.h | |
parent | 07d2a5c721c6aa2bd69812a74c8b3b116abf3e56 (diff) |
ARM: 6225/1: make TCM allocation static and common for all archs
This changes the TCM handling so that a fixed area is reserved at
0xfffe0000-0xfffeffff for TCM. This areas is used by XScale but
XScale does not have TCM so the mechanisms are mutually exclusive.
This change is needed to make TCM detection more dynamic while
still being able to compile code into it, and is a must for the
unified ARM goals: the current TCM allocation at different places
in memory for each machine would be a nightmare if you want to
compile a single image for more than one machine with TCM so it
has to be nailed down in one place.
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/memory.h')
-rw-r--r-- | arch/arm/include/asm/memory.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 4312ee5e3d0b..ab08d977ad49 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h | |||
@@ -124,6 +124,15 @@ | |||
124 | #endif /* !CONFIG_MMU */ | 124 | #endif /* !CONFIG_MMU */ |
125 | 125 | ||
126 | /* | 126 | /* |
127 | * We fix the TCM memories max 32 KiB ITCM resp DTCM at these | ||
128 | * locations | ||
129 | */ | ||
130 | #ifdef CONFIG_HAVE_TCM | ||
131 | #define ITCM_OFFSET UL(0xfffe0000) | ||
132 | #define DTCM_OFFSET UL(0xfffe8000) | ||
133 | #endif | ||
134 | |||
135 | /* | ||
127 | * Physical vs virtual RAM address space conversion. These are | 136 | * Physical vs virtual RAM address space conversion. These are |
128 | * private definitions which should NOT be used outside memory.h | 137 | * private definitions which should NOT be used outside memory.h |
129 | * files. Use virt_to_phys/phys_to_virt/__pa/__va instead. | 138 | * files. Use virt_to_phys/phys_to_virt/__pa/__va instead. |