diff options
| author | Stefan Berger | 2019-01-14 23:27:51 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2019-01-18 03:10:57 +0100 |
| commit | 0fe246690315335a40a132f05cb6fdc7bfb9adca (patch) | |
| tree | 34e9f189fb2c6a4da96533184fd88f6cd5681a78 /include | |
| parent | tpm: allocate/map buffer for TPM Physical Presence interface (diff) | |
| download | qemu-0fe246690315335a40a132f05cb6fdc7bfb9adca.tar.gz qemu-0fe246690315335a40a132f05cb6fdc7bfb9adca.tar.xz qemu-0fe246690315335a40a132f05cb6fdc7bfb9adca.zip | |
acpi: expose TPM/PPI configuration parameters to firmware via fw_cfg
To avoid having to hard code the base address of the PPI virtual
memory device we introduce a fw_cfg file etc/tpm/config that holds the
base address of the PPI device, the version of the PPI interface and
the version of the attached TPM.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
[ Marc-André: renamed to etc/tpm/config, made it static, document it ]
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/acpi/tpm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/acpi/tpm.h b/include/hw/acpi/tpm.h index b8796df916..a6109a97fc 100644 --- a/include/hw/acpi/tpm.h +++ b/include/hw/acpi/tpm.h @@ -194,4 +194,7 @@ REG32(CRB_DATA_BUFFER, 0x80) #define TPM_PPI_ADDR_SIZE 0x400 #define TPM_PPI_ADDR_BASE 0xFED45000 +#define TPM_PPI_VERSION_NONE 0 +#define TPM_PPI_VERSION_1_30 1 + #endif /* HW_ACPI_TPM_H */ |
