From 2788c4aa46bedf0907dd7c4d7b15ec4b336e977d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Mon, 30 Aug 2010 11:38:56 +0800 Subject: [PATCH] tcm: use dtcm instead of sram. dtcm is ok now. --- arch/arm/kernel/tcm.c | 7 ------- arch/arm/mach-rk2818/include/mach/memory.h | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/arm/kernel/tcm.c b/arch/arm/kernel/tcm.c index 2d76fff2638e..e50303868f1b 100644 --- a/arch/arm/kernel/tcm.c +++ b/arch/arm/kernel/tcm.c @@ -17,9 +17,6 @@ #include #include #include -#ifdef CONFIG_ARCH_RK2818 -#include -#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 } diff --git a/arch/arm/mach-rk2818/include/mach/memory.h b/arch/arm/mach-rk2818/include/mach/memory.h index 878d4a7c2b50..2749a563886e 100644 --- a/arch/arm/mach-rk2818/include/mach/memory.h +++ b/arch/arm/mach-rk2818/include/mach/memory.h @@ -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 -- 2.34.1