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>
This commit is contained in:
Philipp Deppenwiese 2016-12-14 01:06:55 +01:00 committed by Martin Roth
parent adcad7f046
commit 3a1fbeaf66
1 changed files with 4 additions and 2 deletions

View File

@ -875,8 +875,10 @@ static void lpc_tpm_fill_ssdt(struct device *dev)
struct opregion opreg = OPREGION("TREG", SYSTEMMEMORY, struct opregion opreg = OPREGION("TREG", SYSTEMMEMORY,
CONFIG_TPM_TIS_BASE_ADDRESS, 0x5000); CONFIG_TPM_TIS_BASE_ADDRESS, 0x5000);
if (!path) if (!path) {
return; path = "PCI0.LPCB";
printk(BIOS_DEBUG, "Using default TPM ACPI path: '%s'\n", path);
}
/* Device */ /* Device */
acpigen_write_scope(path); acpigen_write_scope(path);