[edk2-devel] [PATCH edk2-platforms 4/5] Platform/Secure96Dxe: add TPM description to SSDT

Ard Biesheuvel ard.biesheuvel at linaro.org
Wed May 29 12:50:20 UTC 2019


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 at 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/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list