[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 07/14] hw/arm/virt: connect TPM to platform bus
From: |
Joelle van Dyne |
Subject: |
[PATCH v3 07/14] hw/arm/virt: connect TPM to platform bus |
Date: |
Sat, 28 Oct 2023 23:03:20 -0700 |
Signed-off-by: Joelle van Dyne <j@getutm.app>
---
hw/arm/virt.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 529f1c089c..f1a161b0ea 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -2806,6 +2806,13 @@ static void virt_machine_device_plug_cb(HotplugHandler
*hotplug_dev,
vms->virtio_iommu_bdf = pci_get_bdf(pdev);
create_virtio_iommu_dt_bindings(vms);
}
+
+#ifdef CONFIG_TPM
+ if (object_dynamic_cast(OBJECT(dev), TYPE_TPM_IF)) {
+ tpm_sysbus_plug(TPM_IF(dev), OBJECT(vms->platform_bus_dev),
+ vms->memmap[VIRT_PLATFORM_BUS].base);
+ }
+#endif
}
static void virt_dimm_unplug_request(HotplugHandler *hotplug_dev,
--
2.41.0
- [PATCH v3 00/14] tpm: introduce TPM CRB SysBus device, Joelle van Dyne, 2023/10/29
- [PATCH v3 01/14] tpm_crb: refactor common code, Joelle van Dyne, 2023/10/29
- [PATCH v3 02/14] tpm_crb: CTRL_RSP_ADDR is 64-bits wide, Joelle van Dyne, 2023/10/29
- [PATCH v3 03/14] tpm_ppi: refactor memory space initialization, Joelle van Dyne, 2023/10/29
- [PATCH v3 04/14] tpm_crb: use a single read-as-mem/write-as-mmio mapping, Joelle van Dyne, 2023/10/29
- [PATCH v3 05/14] tpm_crb: move ACPI table building to device interface, Joelle van Dyne, 2023/10/29
- [PATCH v3 06/14] tpm-sysbus: add plug handler for TPM on SysBus, Joelle van Dyne, 2023/10/29
- [PATCH v3 07/14] hw/arm/virt: connect TPM to platform bus,
Joelle van Dyne <=
- [PATCH v3 08/14] hw/loongarch/virt: connect TPM to platform bus, Joelle van Dyne, 2023/10/29
- [PATCH v3 09/14] tpm_tis_sysbus: move DSDT AML generation to device, Joelle van Dyne, 2023/10/29
- [PATCH v3 10/14] tests: acpi: prepare for TPM CRB tests, Joelle van Dyne, 2023/10/29
- [PATCH v3 12/14] tests: acpi: implement TPM CRB tests for ARM virt, Joelle van Dyne, 2023/10/29
- [PATCH v3 11/14] tpm_crb_sysbus: introduce TPM CRB SysBus device, Joelle van Dyne, 2023/10/29