diff options
author | Peter Kao <peter.kao@mediatek.com> | 2015-07-31 17:11:14 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-03-12 09:01:27 +0100 |
commit | dac533725c8d2ab7139500cd2d779ddc2d174e49 (patch) | |
tree | 0c56c6128689f6c8a51c7b22089fa1b46f9ec966 /src/mainboard/google/oak/romstage.c | |
parent | da1e02a3a0cd8de244a03cc84d5ecc9663e5e694 (diff) |
google/oak: Initialize DRAM
BUG=none
TEST=emerge-oak coreboot
BRANCH=none
Change-Id: I3ed8bad1bdc7d17e334e0136f92a51c8e7ba4e67
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: b614eeb1bba5660438c214e82225832809caca8e
Original-Change-Id: I0f7b0a426dae1548b34114a024c92befdf6002f6
Original-Signed-off-by: Peter Kao <peter.kao@mediatek.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/292692
Original-Commit-Ready: Yidi Lin <yidi.lin@mediatek.com>
Original-Tested-by: Yidi Lin <yidi.lin@mediatek.com>
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/13106
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/google/oak/romstage.c')
-rw-r--r-- | src/mainboard/google/oak/romstage.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/oak/romstage.c b/src/mainboard/google/oak/romstage.c index a60a50dcaa..d72693fa4d 100644 --- a/src/mainboard/google/oak/romstage.c +++ b/src/mainboard/google/oak/romstage.c @@ -19,6 +19,7 @@ #include <arch/mmu.h> #include <cbfs.h> +#include <cbmem.h> #include <console/console.h> #include <delay.h> #include <program_loading.h> @@ -26,6 +27,7 @@ #include <symbols.h> #include <timestamp.h> +#include <soc/emi.h> #include <soc/mmu_operations.h> #include <soc/rtc.h> @@ -39,7 +41,13 @@ void main(void) rtc_boot(); + /* init memory */ + mt_mem_init(get_sdram_config()); + mt8173_mmu_after_dram(); + /* should be called after memory init */ + cbmem_initialize_empty(); + run_ramstage(); } |