summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2013-02-12 15:30:17 -0800
committerDavid Hendricks <dhendrix@chromium.org>2013-02-13 03:04:57 +0100
commitb25208fc8bce4142c420afcacd3c16e649fa2a5c (patch)
tree2554d679c389a9e9d2ff4b5b8507ca4376b6a589 /src/arch
parent1b6fecd64d40cae3693d5424a26b9f34e419fd06 (diff)
armv7: use start and size parameters in mmu_setup()
mmu_setup() was originally written in U-Boot to utilize board-specific global data. Since we're trying to avoid that, we added start and size parameters so that board-specific info can be passed in via mainboard code. Let's start using it that way. Change-Id: I7d7de0e42bd918c9f9f0c177acaf56c110bf8353 Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/2378 Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/armv7/lib/cache-cp15.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/armv7/lib/cache-cp15.c b/src/arch/armv7/lib/cache-cp15.c
index f51ee489c6..cfbdb941a0 100644
--- a/src/arch/armv7/lib/cache-cp15.c
+++ b/src/arch/armv7/lib/cache-cp15.c
@@ -114,7 +114,7 @@ static inline void dram_bank_mmu_setup(unsigned long start, unsigned long size)
}
/* to activate the MMU we need to set up virtual memory: use 1M areas */
-inline void mmu_setup(unsigned long start, unsigned long size)
+inline void mmu_setup(unsigned long start, unsigned long size_mb)
{
int i;
u32 reg;
@@ -125,7 +125,7 @@ inline void mmu_setup(unsigned long start, unsigned long size)
for (i = 0; i < 4096; i++)
set_section_dcache(i, DCACHE_OFF);
- dram_bank_mmu_setup(CONFIG_SYS_SDRAM_BASE, CONFIG_DRAM_SIZE_MB << 20);
+ dram_bank_mmu_setup(start, size_mb << 20);
/* Copy the page table address to cp15 */
asm volatile("mcr p15, 0, %0, c2, c0, 0"