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

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


---
 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/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