mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
tcm: use dtcm instead of sram. dtcm is ok now.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user