public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ard.biesheuvel@linaro.org>
To: devel@edk2.groups.io
Cc: leif.lindholm@linaro.org, masahisa.kojima@linaro.org,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: [PATCH edk2-platforms 5/5] DO NOT MERGE - temporary hack to reset the TPM at probe time
Date: Wed, 29 May 2019 14:50:21 +0200	[thread overview]
Message-ID: <20190529125021.28308-6-ard.biesheuvel@linaro.org> (raw)
In-Reply-To: <20190529125021.28308-1-ard.biesheuvel@linaro.org>

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


      parent reply	other threads:[~2019-05-29 12:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-29 12:50 [PATCH edk2-platforms 0/5] SynQuacer SPI/TPM support Ard Biesheuvel
2019-05-29 12:50 ` [PATCH edk2-platforms 1/5] Silicon/SynQuacer: add missing SPI controller interrupt lines to DT Ard Biesheuvel
2019-05-29 12:50 ` [PATCH edk2-platforms 2/5] Silicon/SynQuacer: add ACPI description of second SPI controller Ard Biesheuvel
2019-05-29 12:50 ` [PATCH edk2-platforms 3/5] Platform/Secure96Dxe: redefine LS connector CS as platform property Ard Biesheuvel
2019-05-29 13:06   ` [edk2-devel] " Leif Lindholm
2019-05-29 13:14     ` Ard Biesheuvel
2019-05-29 14:43       ` Leif Lindholm
2019-05-29 18:03         ` Ard Biesheuvel
2019-05-29 12:50 ` [PATCH edk2-platforms 4/5] Platform/Secure96Dxe: add TPM description to SSDT Ard Biesheuvel
2019-05-29 12:50 ` Ard Biesheuvel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190529125021.28308-6-ard.biesheuvel@linaro.org \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox