Skip to contentSkip to conversation

Enable TCM on the Nomadik

PATCH New Linus Walleij 2 participants 2 messages Oct 23, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable TCM on the Nomadik

This enables the 8KiB ITCM + 8KiB DTCM found on the Nomadik board and its derivates.

Cc Alessandro Rubini <[email protected]>

---
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(-)
arch/arm/Kconfig +1 -0
index 1c4119c..39cf2ba 100644
@@ -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
arch/arm/mach-nomadik/include/mach/memory.h +8 -0
index 1e5689d..d2375de 100644
@@ -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
Signature · 1 line
1.6.2.5
#1 lore raw

PATCH 1/1 Enable TCM on the Nomadik

Quoted 2 lines

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