From nobody Sat May 4 05:49:25 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+41608+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+41608+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1559134229; cv=none; d=zoho.com; s=zohoarc; b=GRfqh/PyCmN23pz1u1rRUbEzQvtmaqiYziWEsbPZiBH3CzMXPh07fkdv2zBN/XVJuOnYQlSpTIGxIQzO5FRJyn//RNqsP+ctOa4DwOVNZSV6VuMWC76IDy/0pBi63ytq4KV/VrjzknMpYzG3ErfvEXXdHzCymBGMX/eU0zOC3fo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559134229; 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=aRHSBJVF9wK9COr0zDdW465Y0SYHEd8S/ZcGnw+z3H8=; b=em7b/BEAY18xVFKTlnMLkr0+mjT7sCBj+b1k9CM5gsGFZmQZMQAuwIRZdJ49FXGdSCJb2KwiJXX8NUocVmb5qlFNN23wZMl9FYIp9JoOvjobXhClanKL7P8qSoAh4zImewx1a+a9g4fOZucIcLif/l45cBZ5NtCOJca2NVa+uvI= 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+41608+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 1559134229861203.0933482587959; Wed, 29 May 2019 05:50:29 -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:29 -0700 X-Received: by mail-wr1-f66.google.com with SMTP id l17so1676692wrm.10 for ; Wed, 29 May 2019 05:50:28 -0700 (PDT) X-Gm-Message-State: APjAAAVyeJNnwRk7oxlYZeynHIZh0NVLi9dwFlrLvwH9MiS3XGVy9wQO ERsy566140fFl7DLYcVcHD5DZF/4KC4HZA== X-Google-Smtp-Source: APXvYqzUHUkqUX9wJshMXxhM/Z++Hr2rMxU01KWq3LwV2Xc2ouDasaOZ1MOPfDUss/HxyHOHUjdPTg== X-Received: by 2002:a5d:6389:: with SMTP id p9mr2655013wru.297.1559134227009; Wed, 29 May 2019 05:50:27 -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.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 05:50:26 -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 1/5] Silicon/SynQuacer: add missing SPI controller interrupt lines to DT Date: Wed, 29 May 2019 14:50:17 +0200 Message-Id: <20190529125021.28308-2-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=1559134229; bh=t1vkDNIEW3RohjkeSkfI/aDmuspEh+WH02TIBnzDgso=; h=Cc:Date:From:Reply-To:Subject:To; b=L8++4QkzuKy9gUIrXEPk9P5d5aHjZNdkAvZvDBauvrGdmy8ew+vs8edYD3Qf7nMu/0h zVddnx9HMiAyjfU3DdGhTAIeLkFkTnASS6D6Yiz6kMTIP+JDqY9XAvOf3cBfMvucfBjDM I1yExzzNrf8DruNZJ4GKAKqrVmRur9tW24w= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Update the DT description of the second SPI controller with the TX, RX and fault interrupt lines as they are assigned on SynQuacer. Signed-off-by: Ard Biesheuvel --- Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi b/Silico= n/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi index 8559b5b329a7..f124a223816f 100644 --- a/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi +++ b/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi @@ -545,6 +545,9 @@ spi: spi@54810000 { compatible =3D "socionext,synquacer-spi"; reg =3D <0x0 0x54810000 0x0 0x1000>; + interrupts =3D , + , + ; clocks =3D <&clk_alw_1_8>; clock-names =3D "iHCLK"; socionext,use-rtm; --=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 (#41608): https://edk2.groups.io/g/devel/message/41608 Mute This Topic: https://groups.io/mt/31833221/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- From nobody Sat May 4 05:49:25 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+41609+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+41609+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1559134231; cv=none; d=zoho.com; s=zohoarc; b=aWIpjsOpPLiSsRDp9wX4G64d7xW/LIf8oCe8L957cPIYXAY5yEMhnHn1OkNN8IAIAlvWBATC1FjiiBe4Va9E3PWVN52Nx63n6gXJ4SusyIpXOL8coveOkW4J6Nl3clXOyONv0fKy/RGg6hjbiZdXCtxpI0qzXqb/j93lFC452Co= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559134231; 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=QVGDbJp6uKpQeiHrGxjMgJ0r6sSSOAgSn6r3xXXzcL4=; b=JNdduVXY42MkxBU9gfR9x2dc7t58Dbn6WzsptFkI3PlHtYpIX3piErZkE9xqD8zwcDUESJNIi+Uo9DK0fNGMnJ1fYkOD57Dxo5vzx6CLEkicEzV9j5D65UUy5+H4EhNBuFpaMd3/TxKHoqdVFY66MFiROMi2YVlNNs3TMaShnok= 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+41609+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 1559134231088492.94952516724254; Wed, 29 May 2019 05:50:31 -0700 (PDT) Return-Path: X-Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by groups.io with SMTP; Wed, 29 May 2019 05:50:30 -0700 X-Received: by mail-wm1-f66.google.com with SMTP id w9so1537402wmi.0 for ; Wed, 29 May 2019 05:50:29 -0700 (PDT) X-Gm-Message-State: APjAAAVx6Efd3ZD4tps/mpadeYJZRvuoml7JOwilkVj5ejkQh3rECuX6 ocZpYzwg/NgM+/e9IoBZNb1KPjmH3BkRxg== X-Google-Smtp-Source: APXvYqyT9R4yeZ3bX5OcYGO5bSyGG7z65eupQuAEZev4iyRaPPLrbe6bWevKzpDXJPDPF0EfJPCrVw== X-Received: by 2002:a1c:d10e:: with SMTP id i14mr7248113wmg.161.1559134228129; Wed, 29 May 2019 05:50:28 -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.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 05:50:27 -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 2/5] Silicon/SynQuacer: add ACPI description of second SPI controller Date: Wed, 29 May 2019 14:50:18 +0200 Message-Id: <20190529125021.28308-3-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=1559134230; bh=H/3mgmK/3Ernl98QC9h9W07qrLWj9LM8/Ra9f+4R1d0=; h=Cc:Date:From:Reply-To:Subject:To; b=IwS0Hf6i9JPzM2P4fI3rkckYLz5iM8aPSLr/puJv5GtJknopLxTfYCmMbfJwYMQVGse 8k2xCPYDk/mZW1frsNL7CxFyP5oeMs1OdHmQf0wsbn3d7iIg5Rdeva1GAoO8c89s3vEFO lbWzebO/ZQ6lI5cCuVDfov/ZO7o3ycMbjPw= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" The primary SPI controller on SynQuacer is reserved for the NOR flash, and is not exposed to the OS. The second SPI controller is wired to the low speed 96boards connector on DeveloperBox, and so in order to use it, we must describe it to the OS (like we already do in the device tree). So add the description to the DSDT as well. Signed-off-by: Ard Biesheuvel --- Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl | 19 ++++++++++++= +++++++ Silicon/Socionext/SynQuacer/Include/Platform/MemoryMap.h | 4 ++++ 2 files changed, 23 insertions(+) diff --git a/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl b/Silicon/Soci= onext/SynQuacer/AcpiTables/Dsdt.asl index c8d8120d262a..f6ff3988aa91 100644 --- a/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl +++ b/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl @@ -251,5 +251,24 @@ DefinitionBlock ("DsdtTable.aml", "DSDT", 1, "SNI", "S= YNQUACR", Device (PWRB) { Name (_HID, "PNP0C0C") } + + Device (SPI0) { + Name (_HID, "SCX0004") + Name (_UID, Zero) + Name (_CRS, ResourceTemplate () { + Memory32Fixed (ReadWrite, SYNQUACER_SPI1_BASE, SYNQUACER_SPI1_SIZE) + Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive) { 192, = 193, 194 } + }) + + Name (_DSD, Package () // _DSD: Device-Specific Data + { + ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package (2) { "socionext,ihclk-rate", 125000000 }, + Package (2) { "socionext,use-rtm", 1 }, + Package (2) { "socionext,set-aces", 1 }, + } + }) + } } // Scope (_SB) } diff --git a/Silicon/Socionext/SynQuacer/Include/Platform/MemoryMap.h b/Sil= icon/Socionext/SynQuacer/Include/Platform/MemoryMap.h index deb9c81e82e6..29c5f73f2057 100644 --- a/Silicon/Socionext/SynQuacer/Include/Platform/MemoryMap.h +++ b/Silicon/Socionext/SynQuacer/Include/Platform/MemoryMap.h @@ -78,4 +78,8 @@ #define SYNQUACER_UART1_BASE 0x51040000 #define SYNQUACER_UART1_SIZE SIZE_4KB =20 +// SPI controller #1 +#define SYNQUACER_SPI1_BASE 0x54810000 +#define SYNQUACER_SPI1_SIZE SIZE_4KB + #endif --=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 (#41609): https://edk2.groups.io/g/devel/message/41609 Mute This Topic: https://groups.io/mt/31833222/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- From nobody Sat May 4 05:49:25 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+41610+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+41610+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1559134232; cv=none; d=zoho.com; s=zohoarc; b=NshpoG3jWy+5D8ZSlMrOKyu7s9JQ6Nb2LpCfjP7nPUxFwC1Y1ZvhBGV38wPR5kgd9K3+NPQjm6AuQAHKWntWxHy5U07No3fX7yQ5OlCj02By3CuTvtt20mtMbfOaYx/wI1rZtVicmnjHyaf5+Zy8L6NOJ/CF5gi9heQ64nmfEfw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559134232; 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=sImY2ViJdeEqWwsYCM7VoKZ3/Fl2nIX10R9YOtga0tE=; b=j2kytUVCPpYNUun1pWJfN2ze72UENH+5VZHm3y7YG1bPfit8+h1bIRhWYWZ5bTUvCfIZQVkRSvRQLwka5yw3rqIwbqAY61eNmkHqez1HLnmmeRF6wkAKGCTsNSYQTaF/Xjr24MOpVW3XaUFyggoEtrO8kN5N2wtrF74ZxWi4DEM= 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+41610+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 1559134232015266.2861951009429; Wed, 29 May 2019 05:50:32 -0700 (PDT) Return-Path: X-Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by groups.io with SMTP; Wed, 29 May 2019 05:50:31 -0700 X-Received: by mail-wr1-f65.google.com with SMTP id h1so1705343wro.4 for ; Wed, 29 May 2019 05:50:30 -0700 (PDT) X-Gm-Message-State: APjAAAUDM4AG0AO3/b//2KqRH2JtBipyMYpZcx5iSN48GGB+bWW2CVY5 Eqwjk+hbEw8bydveCReI1sMy0CN3Zol3Lg== X-Google-Smtp-Source: APXvYqwHoKxefZ1/t6Lt7KGJf8YksS6ZABu9eKErxG7VytbCnEDAcuDdXv1vT+52XJbSm2ytz8meuQ== X-Received: by 2002:adf:9c0a:: with SMTP id f10mr13138052wrc.248.1559134229218; Wed, 29 May 2019 05:50:29 -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.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 05:50:28 -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 3/5] Platform/Secure96Dxe: redefine LS connector CS as platform property Date: Wed, 29 May 2019 14:50:19 +0200 Message-Id: <20190529125021.28308-4-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=1559134231; bh=3eNIEYXbi+i8VXURj1glpO65qDbf7sreletBkjnEVMU=; h=Cc:Date:From:Reply-To:Subject:To; b=oyeAvOIUbQ539cQEs+UBjb4aoazp/4pm5gOP/Ossr8WHihK2Dv0Q3Hctvvy7noC7DvQ AOzq/EHj3e2PmhEoj0nsWX6PRY3xOB5I7eDAo5BM7T6VO6PO4sw92AuY5yLZTffTxEfzw ej/UXMSO6IZoJsbRoSDUoAN6F7GzH+5oa+A= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" As opposed to the Secure96's I2C peripherals, whose bus addresses are properties of the peripherals themselves, the SPI CS address of the TPM is a property of the platform that incorporates the LS connector. So tweak the macros that emit the CS values and related properties to put it under the control of the platform that incorporates the driver. Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- Platform/96Boards/Secure96Dxe/Secure96.dts | 2 +- Platform/96Boards/Secure96Dxe/Secure96.h | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Platform/96Boards/Secure96Dxe/Secure96.dts b/Platform/96Boards= /Secure96Dxe/Secure96.dts index d066fcb1933c..0d7d9b3900a4 100644 --- a/Platform/96Boards/Secure96Dxe/Secure96.dts +++ b/Platform/96Boards/Secure96Dxe/Secure96.dts @@ -39,7 +39,7 @@ __overlay__ { INFINEON_SLB9670_DT_NODENAME { compatible =3D "infineon,slb9670"; - reg =3D ; + reg =3D ; spi-max-frequency =3D <22500000>; }; }; diff --git a/Platform/96Boards/Secure96Dxe/Secure96.h b/Platform/96Boards/S= ecure96Dxe/Secure96.h index c34fc5eea046..1d8bf4159209 100644 --- a/Platform/96Boards/Secure96Dxe/Secure96.h +++ b/Platform/96Boards/Secure96Dxe/Secure96.h @@ -1,6 +1,6 @@ /** @file =20 - Copyright (c) 2018, Linaro, Ltd. All rights reserved.
+ Copyright (c) 2018-2019, Linaro, Ltd. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -8,14 +8,19 @@ #ifndef _SECURE96_H_ #define _SECURE96_H_ =20 +#define __CONCAT(a,b) a ## b + #define ATSHA204A_SLAVE_ADDRESS 0x60 #define ATSHA204A_DT_NODENAME atsha204a@60 =20 #define ATECC508A_SLAVE_ADDRESS 0x51 #define ATECC508A_DT_NODENAME atecc508a@51 =20 -#define INFINEON_SLB9670_SPI_CS 0x0 -#define INFINEON_SLB9670_DT_NODENAME tpm@0 +#define INFINEON_SLB9670_DT_NODENAME __CONCAT(tpm@,SECURE96_SPI0_CS) + +#ifndef SECURE96_SPI0_CS +#define SECURE96_SPI0_CS 0 +#endif =20 #ifndef SECURE96_ACPI_GPIO #define SECURE96_ACPI_GPIO "\\_SB.GPIO" --=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 (#41610): https://edk2.groups.io/g/devel/message/41610 Mute This Topic: https://groups.io/mt/31833223/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- From nobody Sat May 4 05:49:25 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- From nobody Sat May 4 05:49:25 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+41612+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+41612+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1559134238; cv=none; d=zoho.com; s=zohoarc; b=VZuT7Q/MRef7VrmHH/J646454iD19/Rz42JC3JAPFhp3MYx/j5IE25q4wGrwI+HD2Mx5D4uWbjWDwQjKVxa/xjBidg7mHShC+H+jFBAM+cri5XpmNsZvCDhSPcZW7c9+Q9dX96htuimgO/vTAXuXtk47IepVKt11auNrznXKXkk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559134238; 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=ZfFIHEVnNOeHcItfg8SGaUlm3jYAozdmcYRh3PClJqE=; b=ghoH+qLfvgXxao2ZEg13tno/H4zUGNovMiu/dle5TUDF5d4oJWXz5jbh5bMIObYKUXZY1AxaXRzF3cJTlb+335uWrEfbd1lnHmOBmpSoGhTMGiffq2BiRsOx5dPAFJdoGnAXqw9VYgX0X6/SQitQY3M/e6uo9EyczqzMW9mVt7A= 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+41612+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 1559134238766491.0558287990407; Wed, 29 May 2019 05:50:38 -0700 (PDT) Return-Path: X-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 X-Received: by mail-wr1-f68.google.com with SMTP id t4so1695326wrx.7 for ; Wed, 29 May 2019 05:50:37 -0700 (PDT) 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) 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.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: [edk2-devel] [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> 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=1559134238; bh=/Kho0HH3LGjTYzVhmz0C5J5eteEi7mxGW5iiYCTv1rw=; h=Cc:Date:From:Reply-To:Subject:To; b=T0DWDwAZlibZMkdQYDLQ/1VeEM2Gsvtj7QDrfqZbmGrwpkspeIGpF03cQE2IcvPh8na PDi9FNLBATmFfL/oi7t+wZ5jw/89vZhA4EAvdyr2X2/VF+VeeWC810rDsgUmWsNJuRtv4 ENs2gDAWkWFu7XwX4yJ3wyGG+ZIA8NgzQKA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" --- Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Silicon/Socionext/SynQuacer/AcpiTables/Dsdt.asl b/Silicon/Soci= onext/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", "S= YNQUACR", 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) + } } =20 Device (PWRB) { --=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 (#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] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-