mb/asus/p8z77-m: Drop GPIO by I/O
[coreboot2.git] / src / arch / x86 / postcar.c
blobb07b512c56dc786b374604573ee313846f1c1265
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <arch/romstage.h>
4 #include <cbmem.h>
5 #include <console/console.h>
6 #include <cpu/x86/mtrr.h>
7 #include <main_decl.h>
8 #include <program_loading.h>
9 #include <timestamp.h>
12 * Systems without a native coreboot cache-as-ram teardown may implement
13 * this to use an alternate method.
15 __weak void late_car_teardown(void) { /* do nothing */ }
17 void main(void)
19 late_car_teardown();
21 console_init();
24 * CBMEM needs to be recovered because timestamps rely on
25 * the cbmem infrastructure being around. Explicitly recover it.
27 * On some platforms CBMEM needs to be initialized earlier.
28 * Use cbmem_online() to avoid init CBMEM twice.
30 if (!cbmem_online())
31 cbmem_initialize();
33 timestamp_add_now(TS_POSTCAR_START);
35 display_mtrrs();
37 /* Load and run ramstage. */
38 run_ramstage();