summary refs log tree commit diff stats
path: root/include/hw/acpi/tpm.h
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2021-06-15 16:21:19 +0200
committerStefan Berger <stefanb@linux.ibm.com>2021-06-15 10:55:03 -0400
commit295f7dcb609e02d8902180e48ffa590bea531d7e (patch)
treec6aaed20bb8f4022a39607c32c890b2565150384 /include/hw/acpi/tpm.h
parentf50be48a7b64905ca8556fa5ca18beb11004fa4a (diff)
downloadfocaccia-qemu-295f7dcb609e02d8902180e48ffa590bea531d7e.tar.gz
focaccia-qemu-295f7dcb609e02d8902180e48ffa590bea531d7e.zip
acpi: Eliminate all TPM related code if CONFIG_TPM is not set
Cc: M: Michael S. Tsirkin <mst@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210614191335.1968807-4-stefanb@linux.ibm.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'include/hw/acpi/tpm.h')
-rw-r--r--include/hw/acpi/tpm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/hw/acpi/tpm.h b/include/hw/acpi/tpm.h
index 1a2a57a21f..559ba6906c 100644
--- a/include/hw/acpi/tpm.h
+++ b/include/hw/acpi/tpm.h
@@ -21,6 +21,8 @@
 #include "hw/acpi/aml-build.h"
 #include "sysemu/tpm.h"
 
+#ifdef CONFIG_TPM
+
 #define TPM_TIS_ADDR_BASE           0xFED40000
 #define TPM_TIS_ADDR_SIZE           0x5000
 
@@ -209,4 +211,6 @@ REG32(CRB_DATA_BUFFER, 0x80)
 
 void tpm_build_ppi_acpi(TPMIf *tpm, Aml *dev);
 
+#endif /* CONFIG_TPM */
+
 #endif /* HW_ACPI_TPM_H */