summaryrefslogtreecommitdiff
path: root/src/drivers/pc80/tpm
diff options
context:
space:
mode:
authorPhilipp Deppenwiese <zaolin@das-labor.org>2016-12-14 01:06:55 +0100
committerMartin Roth <martinroth@google.com>2016-12-16 20:27:29 +0100
commit3a1fbeaf6608d56b1fce2dfb88c76821b05849db (patch)
tree53b046a283b536b8e3475be547859ad595bf9ad9 /src/drivers/pc80/tpm
parentadcad7f046aadaa88c5abb9bcc99bdacf1ff8639 (diff)
drivers/pc80/tpm: Set default TPM acpi path if unset
Enable default acpi path PCI0.LPCB if TPM support is selected in the kconfig system and the acpi path is not set via acpi_name callback in the platform code. Thanks to Aaron Durbin for providing this fix. Change-Id: Idb56cafe71efc8a52eee5a5a663478da99152360 Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org> Reviewed-on: https://review.coreboot.org/17855 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/drivers/pc80/tpm')
-rw-r--r--src/drivers/pc80/tpm/tpm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/pc80/tpm/tpm.c b/src/drivers/pc80/tpm/tpm.c
index 57ea919ad1..83dc92348f 100644
--- a/src/drivers/pc80/tpm/tpm.c
+++ b/src/drivers/pc80/tpm/tpm.c
@@ -875,8 +875,10 @@ static void lpc_tpm_fill_ssdt(struct device *dev)
struct opregion opreg = OPREGION("TREG", SYSTEMMEMORY,
CONFIG_TPM_TIS_BASE_ADDRESS, 0x5000);
- if (!path)
- return;
+ if (!path) {
+ path = "PCI0.LPCB";
+ printk(BIOS_DEBUG, "Using default TPM ACPI path: '%s'\n", path);
+ }
/* Device */
acpigen_write_scope(path);