summaryrefslogtreecommitdiff
path: root/src/mainboard
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/mainboard
parent1fb9bfa0f90c73c73bf0b9b7d9d5a2af6d7fe530 (diff)
downloadcoreboot-90b4ce27759c2cd63586481d2bafeeac61e5ab70.tar.xz
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/mainboard')
-rw-r--r--src/mainboard/google/snow/romstage.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mainboard/google/snow/romstage.c b/src/mainboard/google/snow/romstage.c
index 45016a5434..3f3f3ec38a 100644
--- a/src/mainboard/google/snow/romstage.c
+++ b/src/mainboard/google/snow/romstage.c
@@ -37,11 +37,6 @@
#endif
#include <console/console.h>
-static void mmu_setup(void)
-{
- dram_bank_mmu_setup(CONFIG_SYS_SDRAM_BASE, CONFIG_DRAM_SIZE_MB * 1024);
-}
-
void main(void);
void main(void)
{
@@ -54,5 +49,5 @@ void main(void)
printk(BIOS_INFO, "hello from romstage\n");
// *pshold &= ~0x100; /* shut down */
- mmu_setup();
+ mmu_setup(CONFIG_SYS_SDRAM_BASE, CONFIG_DRAM_SIZE_MB * 1024);
}