2014-06-14 01:00:10 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 Imagination Technologies
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; version 2 of
|
|
|
|
* the License.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
2015-10-09 22:37:58 +02:00
|
|
|
#include <arch/bootblock_common.h>
|
2014-06-14 01:00:10 +02:00
|
|
|
#include <console/console.h>
|
2015-03-09 16:31:38 +01:00
|
|
|
#include <halt.h>
|
2015-03-31 02:47:02 +02:00
|
|
|
#include <program_loading.h>
|
2014-06-14 01:00:10 +02:00
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
|
|
|
bootblock_cpu_init();
|
2015-03-09 16:31:38 +01:00
|
|
|
|
|
|
|
/* Mainboard basic init */
|
2014-06-14 01:00:10 +02:00
|
|
|
bootblock_mainboard_init();
|
|
|
|
|
2017-06-01 19:39:59 +02:00
|
|
|
#if IS_ENABLED(CONFIG_BOOTBLOCK_CONSOLE)
|
2014-06-14 01:00:10 +02:00
|
|
|
console_init();
|
|
|
|
#endif
|
|
|
|
|
2015-02-05 22:40:49 +01:00
|
|
|
bootblock_mmu_init();
|
|
|
|
|
2015-03-09 16:31:38 +01:00
|
|
|
if (init_extra_hardware()) {
|
|
|
|
printk(BIOS_ERR, "bootblock_simple: failed to init HW.\n");
|
|
|
|
} else {
|
|
|
|
run_romstage();
|
|
|
|
}
|
|
|
|
halt();
|
2014-06-14 01:00:10 +02:00
|
|
|
}
|