1 /* This file is part of the coreboot project. */
2 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 #include <console/console.h>
7 void fsp_print_header_info(const struct fsp_header
*hdr
)
19 revision
.val
= hdr
->fsp_revision
;
21 printk(BIOS_SPEW
, "Spec version: v%u.%u\n", (hdr
->spec_version
>> 4),
22 hdr
->spec_version
& 0xf);
23 printk(BIOS_SPEW
, "Revision: %u.%u.%u, Build Number %u\n",
26 revision
.rev
.revision
,
27 revision
.rev
.bld_num
);
28 printk(BIOS_SPEW
, "Type: %s/%s\n",
29 (hdr
->component_attribute
& 1) ? "release" : "debug",
30 (hdr
->component_attribute
& 2) ? "test" : "official");
31 printk(BIOS_SPEW
, "image ID: %s, base 0x%lx + 0x%zx\n",
32 hdr
->image_id
, hdr
->image_base
, hdr
->image_size
);
33 printk(BIOS_SPEW
, "\tConfig region 0x%zx + 0x%zx\n",
34 hdr
->cfg_region_offset
, hdr
->cfg_region_size
);
36 if ((hdr
->component_attribute
>> 12) == FSP_HDR_ATTRIB_FSPM
) {
37 printk(BIOS_SPEW
, "\tMemory init offset 0x%zx\n",
38 hdr
->memory_init_entry_offset
);
41 if ((hdr
->component_attribute
>> 12) == FSP_HDR_ATTRIB_FSPS
) {
42 printk(BIOS_SPEW
, "\tSilicon init offset 0x%zx\n",
43 hdr
->silicon_init_entry_offset
);
44 printk(BIOS_SPEW
, "\tNotify phase offset 0x%zx\n",
45 hdr
->notify_phase_entry_offset
);