summaryrefslogtreecommitdiff
path: root/src/arch/armv7/include
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2013-01-28 09:01:26 -0800
committerDavid Hendricks <dhendrix@chromium.org>2013-01-29 00:15:03 +0100
commit90b4ce27759c2cd63586481d2bafeeac61e5ab70 (patch)
treed2c84a65aa26c99d0f90a21e500a530c5c9200bd /src/arch/armv7/include
parent1fb9bfa0f90c73c73bf0b9b7d9d5a2af6d7fe530 (diff)
armv7: Clean up the mmu setup a bit
The previous incarnation did not use all of mmu_setup, which meant we did not carefully disable things before (possibly) changing them. This code is tested and works, and it's a bit of a simplification. Change-Id: I0560f9b8e25f31cd90e34304d6ec987fc5c87699 Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/2204 Reviewed-by: Peter Stuge <peter@stuge.se> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/arch/armv7/include')
-rw-r--r--src/arch/armv7/include/common.h4
-rw-r--r--src/arch/armv7/include/system.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/armv7/include/common.h b/src/arch/armv7/include/common.h
index 5a27fc0dec..1b69e848f1 100644
--- a/src/arch/armv7/include/common.h
+++ b/src/arch/armv7/include/common.h
@@ -239,10 +239,10 @@ uint rd_dc_cst (void);
void wr_dc_cst (uint);
void wr_dc_adr (uint);
int icache_status (void);
-void icache_enable (void);
+void icache_enable (unsigned long start, unsigned long size);
void icache_disable(void);
int dcache_status (void);
-void dcache_enable (void);
+void dcache_enable (unsigned long start, unsigned long size);
void dcache_disable(void);
void mmu_disable(void);
ulong get_endaddr (void);
diff --git a/src/arch/armv7/include/system.h b/src/arch/armv7/include/system.h
index c74ce8c20c..ddbab892a0 100644
--- a/src/arch/armv7/include/system.h
+++ b/src/arch/armv7/include/system.h
@@ -106,7 +106,7 @@ void mmu_set_region_dcache(unsigned long start, int size,
*/
void mmu_page_table_flush(unsigned long start, unsigned long stop);
-void dram_bank_mmu_setup(unsigned long start, unsigned long size);
+void mmu_setup(unsigned long start, unsigned long size);
void arm_init_before_mmu(void);