Felix Held | 3c44c62 | 2022-01-10 20:57:29 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | /* TODO: Check if this is still correct */ |
| 4 | |
| 5 | #include <acpi/acpi.h> |
| 6 | #include <amdblocks/acpimmio.h> |
| 7 | #include <amdblocks/memmap.h> |
| 8 | #include <amdblocks/pmlib.h> |
| 9 | #include <arch/cpu.h> |
| 10 | #include <console/console.h> |
| 11 | #include <fsp/api.h> |
| 12 | #include <program_loading.h> |
| 13 | #include <timestamp.h> |
| 14 | |
| 15 | asmlinkage void car_stage_entry(void) |
| 16 | { |
| 17 | timestamp_add_now(TS_START_ROMSTAGE); |
| 18 | |
| 19 | post_code(0x40); |
| 20 | |
| 21 | console_init(); |
| 22 | |
| 23 | post_code(0x41); |
| 24 | |
| 25 | /* Snapshot chipset state prior to any FSP call */ |
| 26 | fill_chipset_state(); |
| 27 | |
| 28 | fsp_memory_init(acpi_is_wakeup_s3()); |
| 29 | |
| 30 | /* Fixup settings FSP-M should not be changing */ |
| 31 | fch_disable_legacy_dma_io(); |
| 32 | |
| 33 | memmap_stash_early_dram_usage(); |
| 34 | |
| 35 | run_ramstage(); |
| 36 | } |