blob: f9f9c4854c4fde7b16352d622b23f23607f9e1d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpi.h>
#include <types.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);
|