[edk2-devel] [PATCH edk2-platforms 5/5] DO NOT MERGE - temporary hack to reset the TPM at probe time

Ard Biesheuvel posted 5 patches 5 years, 6 months ago
[edk2-devel] [PATCH edk2-platforms 5/5] DO NOT MERGE - temporary hack to reset the TPM at probe time
Posted by Ard Biesheuvel 5 years, 6 months ago
---
 Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl | 21 ++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl b/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl
index f6ff3988aa91..4761d320cc22 100644
--- a/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl
+++ b/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl
@@ -246,6 +246,27 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 1, "SNI", "SYNQUACR",
       Method (_E08) {
         Notify (\_SB.PWRB, 0x80)
       }
+
+      OperationRegion (GPOP, GeneralPurposeIo, Zero, 0x20)
+      Field (GPOP, ByteAcc, NoLock, Preserve)
+      {
+          Connection (
+              GpioIo (Exclusive, PullUp, 0, 0, IoRestrictionOutputOnly,
+                      "\\_SB.GPIO", 0x00, ResourceConsumer,,)
+              {
+                  13
+              }
+          ),
+          TRST,   1,
+      }
+
+      Method (_REG, 2, Serialized)
+      {
+          Sleep (100)
+          Store (Zero, TRST)
+          Sleep (100)
+          Store (One, TRST)
+      }
     }
 
     Device (PWRB) {
-- 
2.20.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#41612): https://edk2.groups.io/g/devel/message/41612
Mute This Topic: https://groups.io/mt/31833225/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-