From nobody Wed Nov 27 04:58:09 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+41611+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+41611+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1559134233; cv=none; d=zoho.com; s=zohoarc; b=fX+mltUX+minTtjY2zKK5k72+9XUuF2Dz8HOVT106aMYF6WkKJi7Axp3c9Gs3cIlkvq+d3/I+u3STu/LScQMjXCwowmYNVes6RNUmO78MgF321y37Fj2iJMGdCPdEJ+cUSZNY6TJpcS3A8ZsvZbuI75/rf3+p/dLvxxrr/z41ok= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559134233; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=R7tMssALh/G4B8oApYC1ZxRkcfKlDWcxaEEjFeOdXQA=; b=bNQ7jX1m9/XfpQMdqMsbVEdq0L6ASSMTGCOkDo9uYkSDEKXOj9f2tlO1yryGDm7aOb+b/Y3H3jZuFF4wAscKE/t0tzanBbckKBWr4yr/W9giQiMtiOxBjzOswnGOlLYqT+/USbOV6s36t288Vc13+uUpV0YZ2friq4+Av5iWxHc= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+41611+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 155913423301486.69093245061151; Wed, 29 May 2019 05:50:33 -0700 (PDT) Return-Path: X-Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by groups.io with SMTP; Wed, 29 May 2019 05:50:32 -0700 X-Received: by mail-wr1-f66.google.com with SMTP id b18so1658237wrq.12 for ; Wed, 29 May 2019 05:50:31 -0700 (PDT) X-Gm-Message-State: APjAAAUhuj6BEk14WrC4TUl+cEZm5CDV/ST8hIzBK+WDtRl7tDNQxB6+ Isu02ywDEHnv0R3Dn4N0SJzKVJb8XSW89g== X-Google-Smtp-Source: APXvYqxObVBlnaPmGyPLrkJSbFuhcHHjDxZJxT6+atqWRU1BBofw0vrYnp42A7V2uG6BsVAIbJ/f4g== X-Received: by 2002:a5d:628d:: with SMTP id k13mr23593672wru.319.1559134230297; Wed, 29 May 2019 05:50:30 -0700 (PDT) X-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.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 05:50:29 -0700 (PDT) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: leif.lindholm@linaro.org, masahisa.kojima@linaro.org, Ard Biesheuvel Subject: [edk2-devel] [PATCH edk2-platforms 4/5] Platform/Secure96Dxe: add TPM description to SSDT Date: Wed, 29 May 2019 14:50:20 +0200 Message-Id: <20190529125021.28308-5-ard.biesheuvel@linaro.org> In-Reply-To: <20190529125021.28308-1-ard.biesheuvel@linaro.org> References: <20190529125021.28308-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ard.biesheuvel@linaro.org Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1559134232; bh=wvbAutNdrGrUIX8IopSRy7FC20PRge9nyki70cauYac=; h=Cc:Date:From:Reply-To:Subject:To; b=q46kuuZWaM8tj7UJAVuAXgoiDjFevNAJibecmyHCGJCJwb27GNp4n28Ae1XHXQCPGR8 mbYhxaloA/LViesVFLCOuq58uMixjsHffISQg/JBscRov5hPbkE4zF8jK2Z8WQ28ZHFUe JdQAGln9rriuN4Pp2biLWVSrE5nswUmjOlU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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 --- 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, ClockPolari= tyLow, + ClockPhaseFirst, SECURE96_ACPI_SPI0, 0, + ResourceConsumer) + }) + } } } diff --git a/Platform/96Boards/Secure96Dxe/Secure96.h b/Platform/96Boards/S= ecure96Dxe/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 =20 +#ifndef SECURE96_ACPI_SPI0 +#define SECURE96_ACPI_SPI0 "\\_SB.SPI0" +#endif + #endif // _SECURE96_H_ --=20 2.20.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- 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/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-