tcm: use dtcm instead of sram. dtcm is ok now.
author黄涛 <huangtao@rock-chips.com>
Mon, 30 Aug 2010 03:38:56 +0000 (11:38 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 30 Aug 2010 03:38:56 +0000 (11:38 +0800)
arch/arm/kernel/tcm.c
arch/arm/mach-rk2818/include/mach/memory.h

index 2d76fff2638ec7be7f7555157e4d8a9fe22e48c3..e50303868f1b62dd3853667d4a1445629eb4999c 100644 (file)
@@ -17,9 +17,6 @@
 #include <asm/cputype.h>
 #include <asm/mach/map.h>
 #include <mach/memory.h>
-#ifdef CONFIG_ARCH_RK2818
-#include <mach/rk2818_iomap.h>
-#endif
 #include "tcm.h"
 
 /* Scream and warn about misuse */
@@ -54,11 +51,7 @@ static struct resource itcm_res = {
 static struct map_desc dtcm_iomap[] __initdata = {
        {
                .virtual        = DTCM_OFFSET,
-#ifdef CONFIG_ARCH_RK2818
-               .pfn            = __phys_to_pfn(RK2818_SRAM_PHYS),
-#else
                .pfn            = __phys_to_pfn(DTCM_OFFSET),
-#endif
                .length         = (DTCM_END - DTCM_OFFSET + 1),
                .type           = MT_UNCACHED
        }
index 878d4a7c2b504deb3b9830548ddec32a5658071b..2749a563886ef610baef6b3cb61dcdddcbcefdab 100644 (file)
@@ -29,8 +29,7 @@
 #define ITCM_OFFSET    0xff400000
 #define ITCM_END       0xff401fff
 #define DTCM_OFFSET    0xff404000
-#define DTCM_END       0xff404fff      // use sram for dtcm,sram length = 4K.
-/* #define DTCM_END    0xff407fff */
+#define DTCM_END       0xff407fff
 
 #endif