diff options
Diffstat (limited to 'src/drivers/pc80/tpm')
-rw-r--r-- | src/drivers/pc80/tpm/tis.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c index 714b7e5ed0..3549173210 100644 --- a/src/drivers/pc80/tpm/tis.c +++ b/src/drivers/pc80/tpm/tis.c @@ -904,11 +904,13 @@ static void lpc_tpm_fill_ssdt(struct device *dev) else acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_OFF); + u16 port = dev->path.pnp.port; + /* Resources */ acpigen_write_name("_CRS"); acpigen_write_resourcetemplate_header(); acpigen_write_mem32fixed(1, CONFIG_TPM_TIS_BASE_ADDRESS, 0x5000); - acpigen_write_io16(0x2e, 0x2e, 1, 2, 1); + acpigen_write_io16(port, port, 1, 2, 1); if (CONFIG_TPM_PIRQ) { /* |