summaryrefslogtreecommitdiff
path: root/src/soc/amd/mendocino/manifest.c
blob: 3dd9b6ae4381ba60bc64e7816ba90a5099d99591 (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
/* SPDX-License-Identifier: GPL-2.0-only */

#include <bootstate.h>
#include <cbfs.h>

static void print_blob_version(void *arg)
{
	char *version;
	size_t size;

	version = cbfs_map("amdfw_manifest", &size);

	if (!version) {
		printk(BIOS_WARNING, "Failed to get amdfw_manifest\n");
		return;
	}

	printk(BIOS_INFO, "AMDFW blobs version:\n");
	printk(BIOS_INFO, "%.*s", (int)size, version);

	cbfs_unmap(version);
}

BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_LOAD, BS_ON_ENTRY, print_blob_version, NULL);