The second SPI controller is wired to the low speed 96boards connector on Developerbox. SynQuacer platform can exposes its SPI TPM via MMIO window that is backed by the SPI command sequencer in the SPI bus controller. This commit adds the MMIO TPM description to the DSDT.
If TPM2_ENABLE build option is not enabled, existing linux SPI driver is used instead of MMIO TPM. Signed-off-by: Masahisa Kojima <masahisa.koj...@linaro.org> --- Silicon/Socionext/SynQuacer/Acpi.dsc.inc | 7 ++++++- Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Silicon/Socionext/SynQuacer/Acpi.dsc.inc b/Silicon/Socionext/SynQuacer/Acpi.dsc.inc index acd903553368..ce5a1f6c5007 100644 --- a/Silicon/Socionext/SynQuacer/Acpi.dsc.inc +++ b/Silicon/Socionext/SynQuacer/Acpi.dsc.inc @@ -39,4 +39,9 @@ [Components.common] gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20 } MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf - Silicon/Socionext/SynQuacer/AcpiTables/AcpiTables.inf + Silicon/Socionext/SynQuacer/AcpiTables/AcpiTables.inf { + <BuildOptions> +!if $(TPM2_ENABLE) == TRUE + *_*_*_ASLPP_FLAGS = -DTPM2_ENABLE +!endif + } diff --git a/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl b/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl index 50f1753c3565..bca484763d2c 100644 --- a/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl +++ b/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl @@ -262,6 +262,19 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 1, "SNI", "SYNQUACR", Name (_HID, "PNP0C0C") } +#ifdef TPM2_ENABLE + // + // TPM MMIO device. + // This is backed by the SPI command sequencer in the SPI bus controller. + // + Device (TPM0) { + Name (_HID, "SCX0009") + Name (_UID, Zero) + Name (_CRS, ResourceTemplate () { + Memory32Fixed (ReadWrite, SYNQUACER_SPI1_MMIO_BASE, SYNQUACER_SPI1_MMIO_SIZE) + }) + } +#else Device (SPI0) { Name (_HID, "SCX0004") Name (_UID, Zero) @@ -280,5 +293,6 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 1, "SNI", "SYNQUACR", } }) } +#endif } // Scope (_SB) } -- 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#62762): https://edk2.groups.io/g/devel/message/62762 Mute This Topic: https://groups.io/mt/75608937/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-