aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/storm/romstage.c
diff options
context:
space:
mode:
authorDeepa Dinamani <deepad@codeaurora.org>2015-01-12 11:57:09 -0800
committerPatrick Georgi <pgeorgi@google.com>2015-04-17 09:59:08 +0200
commit1c2748d113014e7e675e6ece17c6e916a6a4ec7d (patch)
tree9c2369fc09a437eb85c9b2391addd9a9f0d0b7a8 /src/mainboard/google/storm/romstage.c
parentefe279d422fcdae72f9ad54b348aa445a8e45666 (diff)
ipq806x: Add support for mmu in bootblock.
move mmu setup from RAM stage to boot block Enabling mmu earlier, helps speed up the boot time. BRANCH=storm BUG=chrome-os-partner:35024 TEST=Verified the mmu table dump matches the programmed values. Change-Id: I8f581538d5dfd0d78538c9fe50f689d54b740685 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: fb799a6d61f9c2f478434a71584d0edb94af4b59 Original-Change-Id: I110497875002a88add7eb4312a70c0de8c28bc4f Original-Signed-off-by: Deepa Dinamani <deepad@codeaurora.org> Original-Reviewed-on: https://chromium-review.googlesource.com/247120 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Commit-Queue: Trevor Bourget <tbourget@codeaurora.org> Reviewed-on: http://review.coreboot.org/9756 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/google/storm/romstage.c')
-rw-r--r--src/mainboard/google/storm/romstage.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/storm/romstage.c b/src/mainboard/google/storm/romstage.c
index 3c7543b177..d827ce60de 100644
--- a/src/mainboard/google/storm/romstage.c
+++ b/src/mainboard/google/storm/romstage.c
@@ -1,6 +1,7 @@
/*
* This file is part of the coreboot project.
*
+ * Copyright (c) 2015, The Linux Foundation. All rights reserved.
* Copyright 2014 Google Inc.
*
* This program is free software; you can redistribute it and/or modify
@@ -21,11 +22,16 @@
#include <console/console.h>
#include <program_loading.h>
#include <soc/soc_services.h>
+#include "mmu.h"
void main(void)
{
console_init();
initialize_dram();
+
+ /* Add dram mappings to mmu tables. */
+ setup_dram_mappings(DRAM_INITIALIZED);
+
cbmem_initialize_empty();
run_ramstage();
}