summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2011-07-01 09:23:36 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-07-06 21:49:45 +0200
commit201043f227576d42529ddb340746a060a00f57f6 (patch)
tree1380607e723339f4b75936c230813874e2fa338d /arch/arm/include
parentARM: 6984/1: enhance TCM robustness (diff)
downloadlinux-201043f227576d42529ddb340746a060a00f57f6.tar.xz
linux-201043f227576d42529ddb340746a060a00f57f6.zip
ARM: 6985/1: export functions to determine the presence of I/DTCM
By allowing code to detect whether DTCM or ITCM is present, code paths involving TCM can be avoided when running on platforms that lack it. This is good for creating single kernels across several archs, if some of them utilize TCM but others don't. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/tcm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/tcm.h b/arch/arm/include/asm/tcm.h
index 5929ef5d927a..8578d726ad78 100644
--- a/arch/arm/include/asm/tcm.h
+++ b/arch/arm/include/asm/tcm.h
@@ -27,5 +27,7 @@
void *tcm_alloc(size_t len);
void tcm_free(void *addr, size_t len);
+bool tcm_dtcm_present(void);
+bool tcm_itcm_present(void);
#endif