blob: c1b86541fb5cda686fcc95135b06c9211020b8cf [file] [log] [blame]
Furquan Shaikhda01d942014-03-19 14:31:23 -07001/*
2 * This file is part of the coreboot project.
3 *
Deepa Dinamani1c2748d2015-01-12 11:57:09 -08004 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
Furquan Shaikhda01d942014-03-19 14:31:23 -07005 * Copyright 2014 Google Inc.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Furquan Shaikhda01d942014-03-19 14:31:23 -070015 */
16
Vadim Bendebury15c98b02014-05-01 14:45:56 -070017#include <cbmem.h>
Furquan Shaikhda01d942014-03-19 14:31:23 -070018#include <console/console.h>
Aaron Durbine4f3e7a2015-03-17 13:25:19 -050019#include <program_loading.h>
Vadim Bendeburyef77f872014-12-10 20:42:58 -080020#include <soc/soc_services.h>
Deepa Dinamani1c2748d2015-01-12 11:57:09 -080021#include "mmu.h"
Furquan Shaikhda01d942014-03-19 14:31:23 -070022
23void main(void)
24{
Vadim Bendebury1ea56852014-05-13 17:11:30 -070025 console_init();
Vadim Bendeburyef77f872014-12-10 20:42:58 -080026 initialize_dram();
Deepa Dinamani1c2748d2015-01-12 11:57:09 -080027
28 /* Add dram mappings to mmu tables. */
29 setup_dram_mappings(DRAM_INITIALIZED);
30
Vadim Bendebury23962262014-12-11 15:17:48 -080031 cbmem_initialize_empty();
Aaron Durbine4f3e7a2015-03-17 13:25:19 -050032 run_ramstage();
Furquan Shaikhda01d942014-03-19 14:31:23 -070033}