summaryrefslogtreecommitdiff
path: root/src/drivers/tpm/tpm.c
blob: ce1a2b76700b3e385a02c1685c7a2df58c48a686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* SPDX-License-Identifier: GPL-2.0-only */

#include <acpi/acpi.h>
#include <bootstate.h>
#include <security/tpm/tspi.h>

static void init_tpm_dev(void *unused)
{
	int s3resume = acpi_is_wakeup_s3();
	tpm_setup(s3resume);
}

BOOT_STATE_INIT_ENTRY(BS_DEV_INIT, BS_ON_ENTRY, init_tpm_dev, NULL);