summaryrefslogtreecommitdiff
path: root/arch/nios2/cpu/cpu.c
diff options
context:
space:
mode:
authorThomas Chou <thomas@wytron.com.tw>2015-10-27 08:30:22 +0800
committerThomas Chou <thomas@wytron.com.tw>2015-11-06 09:14:11 +0800
commit1ce61cbbe7b351041b31c59cf7c5d8b056a199ec (patch)
tree51894d18e724457d06e036c1a62ef4f2f14381a7 /arch/nios2/cpu/cpu.c
parented02c532be690b3d0c3e15c81531785a788fd949 (diff)
nios2: fix map_physmem to do real cache mapping
Fix the map_physmem() to do real cache mapping. Signed-off-by: Thomas Chou <thomas@wytron.com.tw> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/nios2/cpu/cpu.c')
-rw-r--r--arch/nios2/cpu/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
index ff0fa20798..88c4e184ee 100644
--- a/arch/nios2/cpu/cpu.c
+++ b/arch/nios2/cpu/cpu.c
@@ -117,7 +117,8 @@ static int altera_nios2_probe(struct udevice *dev)
"altr,has-initda", 0);
gd->arch.has_mmu = fdtdec_get_int(blob, node,
"altr,has-mmu", 0);
- gd->arch.io_region_base = gd->arch.has_mmu ? 0xe0000000 : 0x8000000;
+ gd->arch.io_region_base = gd->arch.has_mmu ? 0xe0000000 : 0x80000000;
+ gd->arch.mem_region_base = gd->arch.has_mmu ? 0xc0000000 : 0x00000000;
return 0;
}