Add a description of the Secure96's TPM over SPI to the SSDT that
is exposed to the OS by the Secure96Dxe driver.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
Platform/96Boards/Secure96Dxe/Secure96.asl | 12 ++++++++++++
Platform/96Boards/Secure96Dxe/Secure96.h | 4 ++++
2 files changed, 16 insertions(+)
diff --git a/Platform/96Boards/Secure96Dxe/Secure96.asl b/Platform/96Boards/Secure96Dxe/Secure96.asl
index 4018d437246f..64b6e3b2adbe 100644
--- a/Platform/96Boards/Secure96Dxe/Secure96.asl
+++ b/Platform/96Boards/Secure96Dxe/Secure96.asl
@@ -105,5 +105,17 @@ DefinitionBlock ("Secure96.aml", "SSDT", 2, "96BRDS", "SECURE96", 1)
I2CSerialBus (ATECC508A_SLAVE_ADDRESS,, 100000,, SECURE96_ACPI_I2C0,,,,)
})
}
+
+ Device (TP96)
+ {
+ Name (_ADR, SECURE96_SPI0_CS)
+ Name (_CID, "SMO0768")
+ Name (_CRS, ResourceTemplate() {
+ SpiSerialBus (SECURE96_SPI0_CS, PolarityLow, FourWireMode,
+ 8, ControllerInitiated, 5000000, ClockPolarityLow,
+ ClockPhaseFirst, SECURE96_ACPI_SPI0, 0,
+ ResourceConsumer)
+ })
+ }
}
}
diff --git a/Platform/96Boards/Secure96Dxe/Secure96.h b/Platform/96Boards/Secure96Dxe/Secure96.h
index 1d8bf4159209..231d8a47ef7b 100644
--- a/Platform/96Boards/Secure96Dxe/Secure96.h
+++ b/Platform/96Boards/Secure96Dxe/Secure96.h
@@ -30,4 +30,8 @@
#define SECURE96_ACPI_I2C0 "\\_SB.I2C0"
#endif
+#ifndef SECURE96_ACPI_SPI0
+#define SECURE96_ACPI_SPI0 "\\_SB.SPI0"
+#endif
+
#endif // _SECURE96_H_
--
2.20.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#41611): https://edk2.groups.io/g/devel/message/41611
Mute This Topic: https://groups.io/mt/31833224/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-