Patrick Georgi | 0a3d4e0 | 2020-03-04 14:39:09 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Julius Werner | 5d6593a | 2018-08-10 16:13:26 -0700 | [diff] [blame] | 2 | |
| 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 | |
| 13 | void 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 | } |