Files
EDK2-fork/DynamicTablesPkg/Library/Common/Tpm2DeviceTableLib/Tpm2DeviceTableTemplate.asl
Levi Yun 0d82e48221 DynamicTablesPkg: add Tpm2DeviceTableLib to generate Tpm2 device table
Introduce Tpm2DeviceTableLib to generate SSDT table which describes
Tpm2 devices.

This dynamic table generation is controlled by PcdGenTpm2DeviceTable
which default value is FALSE.
When it is TRUE, the TPM2 device ssdt table is generated when TPM2 ACPI
table is generated.

Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
2025-07-29 08:07:39 +00:00

45 lines
1.3 KiB
Plaintext

/** @file
TPM2 Device Table Template
Copyright (c) 2025, ARM Ltd. All rights reserved.<BR>
All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Reference(s)
- TCG ACPI Specification
- TCG PC Client Platform Firmware Profile Specification
@par Glossary:
- {template} - Data fixed up using AML Fixup APIs.
**/
DefinitionBlock("Tpm2DeviceTableTemplate.aml", "SSDT", 2, "ARMLTD", "TPM2CRB", 1) {
Scope(_SB) {
Device (TPM0) { // {template}
Name (_HID, "MSFT0101")
Name (_UID, 0) // {template}
Name (_CRS, ResourceTemplate () {
QWordMemory (
ResourceProducer,
PosDecode,
MinFixed,
MaxFixed,
NonCacheable,
ReadWrite,
0x0000000000000000, // Granularity
0x00000000FFDFB000, // Range Minimum // {template}
0x00000000FFDFFFFF, // Range Maximum // {template}
0x0000000000000000, // Translation Offset
0x0000000000005000, // Length // {template}
,
,
,
AddressRangeReserved,
TypeStatic
) // QWordMemory
}) // Name
} // Device
} // Scope(_SB)
}