blob: f4b454407c830735cf57289fc2f4fd87a820cfda [file] [log] [blame]
Patrick Georgi0a3d4e02020-03-04 14:39:09 +01001/* SPDX-License-Identifier: GPL-2.0-only */
Julius Werner5d6593a2018-08-10 16:13:26 -07002
3#include <arch/exception.h>
4#include <arch/stages.h>
5#include <cbmem.h>
6#include <console/console.h>
7#include <program_loading.h>
8#include <timestamp.h>
9
10__weak void platform_romstage_main(void) { /* no-op, for bring-up */ }
11__weak void platform_romstage_postram(void) { /* no-op */ }
12
13void main(void)
14{
15 timestamp_add_now(TS_START_ROMSTAGE);
16
17 console_init();
18 exception_init();
19
20 platform_romstage_main();
21 cbmem_initialize_empty();
22 platform_romstage_postram();
23
24 run_ramstage();
25}