From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=laFIAXkE; spf=pass (domain: linaro.org, ip: 209.85.221.68, mailfrom: ard.biesheuvel@linaro.org) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by groups.io with SMTP; Wed, 29 May 2019 05:50:38 -0700 Received: by mail-wr1-f68.google.com with SMTP id t4so1695326wrx.7 for ; Wed, 29 May 2019 05:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ucPL8Y/czTaZr7ruGTRQyYyy18J+qQYXNV5utWh91b8=; b=laFIAXkEa3r4DiOQHIADozkeLk2LWDiEjjE19fFTe7zQX93WPfLhISoh7DbUN+qXR6 278ENH1NdM84BJdGDOYCVTY/DMhye29VDBfzDqyM6nvT9PFG187LH0GEEP6imx1/6Z4m 0fskg40uSCB6ZMSz4TuPIyNnZtMiDJ2m+0xUGbwIsxxMKAQt1kBMPbw1bQOpYKUV8j+l B/NGZejSqonP9pUWudRqXDKJS/aYYdg0JZq/v2w7guJiTOJg3PGqHax7awy+/CNGJX0O XccOwtk2p3RAoF4aIBhiLMSdIknt2MV9UCGEDnN+RAz/iGgNjc91gVRfX/9eytNkpwsx Wl9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ucPL8Y/czTaZr7ruGTRQyYyy18J+qQYXNV5utWh91b8=; b=l72LMEAWEZ+NZwpx7je73qKC24Wk4BLl56HmnGreuBj/lgD/AXnwM72rP/018xfpEi o/STrqiOLufCPd/i7qkLbW/rqGqtDwvUpYRzxhdvlCR4Zuop1ZfXykj7CfjebGPC7jnM wM1P59egeV5Rmgzuji1v1DSGnNnqqb9/5BY6r5W6q4qzRRbUBrcpp5BP1pc74INYZmOB nDCV/cnGWvhOx/l84J16Q+oBNoLIrAUohh/FEIaLw2VF+EXmuZCVXp71/MpE7KDPJLti EXhj5svB9s0dXssRqeG1TTl2snN22DlZMT0C+Cb7//Kkv/HH6ycVc0WfBNsdVhuSGyGX 5FYg== X-Gm-Message-State: APjAAAW4DWRIUd0342WuUQJsSk+pg60HGLpBD7zcSfP09i8jkDCNDuXm J5i90wRTF0qrqBofvDGxKCOsUDjBQyGANQ== X-Google-Smtp-Source: APXvYqy9zeJTsNO6IENBzXyNMqtGcwtQDUztNrbB5nnQeI2H86wSE5e5pL0PIYoDeU7MABY+QTFj9w== X-Received: by 2002:adf:fbc2:: with SMTP id d2mr19563460wrs.334.1559134231282; Wed, 29 May 2019 05:50:31 -0700 (PDT) Return-Path: Received: from sudo.home ([2a01:cb1d:112:6f00:c225:e9ff:fe2e:ea8]) by smtp.gmail.com with ESMTPSA id l18sm18112608wrv.38.2019.05.29.05.50.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 05:50:30 -0700 (PDT) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, masahisa.kojima@linaro.org, Ard Biesheuvel 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 Message-Id: <20190529125021.28308-6-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190529125021.28308-1-ard.biesheuvel@linaro.org> References: <20190529125021.28308-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit --- 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