tcm: use dtcm instead of sram. dtcm is ok now.

This commit is contained in:
黄涛
2010-08-30 11:38:56 +08:00
parent 7fabf025bf
commit 2788c4aa46
2 changed files with 1 additions and 9 deletions

View 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
}

View 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