summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichał Kopeć <michal.kopec@3mdeb.com>2022-02-22 12:30:22 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-03-23 14:58:52 +0000
commita691cbd2eb2a5ed98bf1dadbbe3c09065eb0fe2a (patch)
tree1051313fa25945095197041278397b4c80ccbe5b /src
parent5deefc8bd3dcd2aafc9c8d377f7d707e274917e9 (diff)
drivers/pc80/tpm/tis.c: Use fixed TPM ACPI path
Windows 11 installer expects the TPM to reside under \\_SB_.PCI0 in ACPI device hierarchy, otherwise the TPM is not detected. Hardcode the path to fix the issue. TEST=Boot Windows 11 on Clevo NV41MZ and see the TPM is detected correctly TEST=Boot Ubuntu 20.04 on Clevo NV41MZ and see the TPM is detected correctly Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com> Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com> Change-Id: If0b3136e3eb8eb1bb132132a5f3a7034bdd3b424 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62493 Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/pc80/tpm/tis.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c
index 455bcf9419..cf46f76c35 100644
--- a/src/drivers/pc80/tpm/tis.c
+++ b/src/drivers/pc80/tpm/tis.c
@@ -779,12 +779,8 @@ static void lpc_tpm_set_resources(struct device *dev)
#if CONFIG(HAVE_ACPI_TABLES)
static void lpc_tpm_fill_ssdt(const struct device *dev)
{
- const char *path = acpi_device_path(dev->bus->dev);
-
- if (!path) {
- path = "\\_SB_.PCI0.LPCB";
- printk(BIOS_DEBUG, "Using default TPM ACPI path: '%s'\n", path);
- }
+ /* Windows 11 requires the following path for TPM to be detected */
+ const char *path = "\\_SB_.PCI0";
/* Device */
acpigen_write_scope(path);