summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/tcm.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2011-07-01 08:23:36 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-07-06 20:49:45 +0100
commit201043f227576d42529ddb340746a060a00f57f6 (patch)
tree1380607e723339f4b75936c230813874e2fa338d /arch/arm/include/asm/tcm.h
parent9715efb8dc9ffa629bf5a1215b11bf2f2f29908b (diff)
downloadop-kernel-dev-201043f227576d42529ddb340746a060a00f57f6.zip
op-kernel-dev-201043f227576d42529ddb340746a060a00f57f6.tar.gz
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/asm/tcm.h')
-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 5929ef5..8578d72 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
OpenPOWER on IntegriCloud