ARM: 6985/1: export functions to determine the presence of I/DTCM
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 1 Jul 2011 07:23:36 +0000 (08:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 6 Jul 2011 19:49:45 +0000 (20:49 +0100)
commit201043f227576d42529ddb340746a060a00f57f6
tree1380607e723339f4b75936c230813874e2fa338d
parent9715efb8dc9ffa629bf5a1215b11bf2f2f29908b
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>
arch/arm/include/asm/tcm.h
arch/arm/kernel/tcm.c