* [PATCH] Enable TCM on the Nomadik
@ 2009-10-23 16:47 Linus Walleij
[not found] ` <1256316420-29515-1-git-send-email-linus.walleij@stericsson.com >
0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2009-10-23 16:47 UTC (permalink / raw)
To: linux-arm-kernel
This enables the 8KiB ITCM + 8KiB DTCM found on the Nomadik board
and its derivates.
Signed-off-by: Linus Walleij <linus.walleij@stericsson.se>
Cc: Alessandro Rubini <rubini-list@gnudd.com>
---
I don't have a Nomadik board so I cannot test this really, but I
hope Alessandro can spare some time for it. The example code in
Documentation/arm/tcm.txt can be used to see if the compile macros
and allocation pool are working.
---
arch/arm/Kconfig | 1 +
arch/arm/mach-nomadik/include/mach/memory.h | 8 ++++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 1c4119c..39cf2ba 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -349,6 +349,7 @@ config ARCH_NOMADIK
select ARM_AMBA
select ARM_VIC
select CPU_ARM926T
+ select HAVE_TCM
select HAVE_CLK
select COMMON_CLKDEV
select GENERIC_TIME
diff --git a/arch/arm/mach-nomadik/include/mach/memory.h b/arch/arm/mach-nomadik/include/mach/memory.h
index 1e5689d..d2375de 100644
--- a/arch/arm/mach-nomadik/include/mach/memory.h
+++ b/arch/arm/mach-nomadik/include/mach/memory.h
@@ -25,4 +25,12 @@
*/
#define PHYS_OFFSET UL(0x00000000)
+/*
+ * TCM memory whereabouts
+ */
+#define ITCM_OFFSET 0xffff2000
+#define ITCM_END 0xffff3fff
+#define DTCM_OFFSET 0xffff4000
+#define DTCM_END 0xffff5fff
+
#endif
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] Enable TCM on the Nomadik
[not found] ` <1256316420-29515-1-git-send-email-linus.walleij@stericsson.com >
@ 2009-10-23 17:45 ` Alessandro Rubini
0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Rubini @ 2009-10-23 17:45 UTC (permalink / raw)
To: linux-arm-kernel
> This enables the 8KiB ITCM + 8KiB DTCM found on the Nomadik board
> and its derivates.
Thanks. I'm currently offsite, will check on monday.
/alessandro
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-23 17:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-23 16:47 [PATCH] Enable TCM on the Nomadik Linus Walleij
[not found] ` <1256316420-29515-1-git-send-email-linus.walleij@stericsson.com >
2009-10-23 17:45 ` Alessandro Rubini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).