summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/bootblock.c
blob: 0d0662bb8cebee4299057556c027ea1cb9b1e46a (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-or-later */

#include <baseboard/variants.h>
#include <bootblock_common.h>
#include <security/tpm/tss.h>

void bootblock_mainboard_early_init(void)
{
	const struct pad_config *pads;
	size_t num;
	pads = variant_early_gpio_table(&num);
	gpio_configure_pads(pads, num);

	/* Init TPM in non-vboot case so ready in early ramstage before i2c init */
	if (!CONFIG(VBOOT))
		tlcl_lib_init();
}

void bootblock_mainboard_init(void)
{
	variant_update_descriptor();
}

void __weak variant_update_descriptor(void) {}