summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/picasso/romstage.c
blob: c43b249487be682bc3032f4200e776ebe98835b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0-only */

#include <acpi/acpi.h>
#include <amdblocks/memmap.h>
#include <amdblocks/pmlib.h>
#include <amdblocks/post_codes.h>
#include <commonlib/helpers.h>
#include <console/console.h>
#include <cpu/cpu.h>
#include <fsp/api.h>
#include <program_loading.h>
#include <romstage_common.h>
#include <types.h>

void __noreturn romstage_main(void)
{
	post_code(POSTCODE_ROMSTAGE_MAIN);

	/* Snapshot chipset state prior to any FSP call. */
	fill_chipset_state();

	fsp_memory_init(acpi_is_wakeup_s3());

	memmap_stash_early_dram_usage();

	run_ramstage();
}