From patchwork Fri Feb 23 15:40:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 129390 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp744676lja; Fri, 23 Feb 2018 07:41:10 -0800 (PST) X-Google-Smtp-Source: AH8x22482n1Sfo2k44arWHfBYzLo5mKup5NDSb+e2pjqWZFy7L7gxj3hOhgsZd5/2BEGG0l+n40E X-Received: by 2002:a17:902:42e:: with SMTP id 43-v6mr2172647ple.186.1519400469916; Fri, 23 Feb 2018 07:41:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519400469; cv=none; d=google.com; s=arc-20160816; b=lQyfyudMnv9nCw2bNer7uSq3lPojnphgLehowF9TCqNd4z8eSJ5NiDhowmNldl+zoL oLxBgabZQGqMjF9E5EKiCwfN0IOpOuFP++F6geXwutFBJ9WTV69aU/2kTLf2VPKgmNfu xWkoRAwYEzFY3cur6u5iZIksVexJ26QUXAWHkotMWsAe2hwnue/OZFPKUxUwJD+z2irr XnC85boyfaNJyQkD2TLgqnuADcw0yXOiyv5e07CjvqRYSJOgK6K+Yf0TNNtTd1yCN6of BBE8c7Opw+UbHUfK0t2dt2yQ1ARunTIyGIxC/euHiDGrC5Cfpyi7Kr8C7q0ZT6a0pur2 kEuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=pWGTiuCJ8EKdmIexUKJ7Uoqh/pMSy+CkJCWzBmq97ZY=; b=CdoUYM7e2jDstP21nsCR3olGKdEqkCLdtT4T0TUeRRe8Hisu32+jDUdNtZiphEEhqX D8hNVzzViMj0Obqy0cnaKwHyfDVSkC/ONUX1ypURvfPRkCrHmGNiNzuWtH/umRZgNUOc lPCuxJxWWZ8pMN2MBV1JduWq/2AxhGpOs+7MX4zPbQcX5bO9elsH4nvL2oMAjOTVSB5a nfraBOWwNIujht82pJFG0NW66VQy+z0RHORF4AtOz2OVjVyJ6TW6cF8HfrFHS9KtiAvE yiIkGOVhhOCPuDTueqMUM2KxSgvATbDW8zfNCSDCOfbf6l6chqTWN+ECjQS/mIEtBk/7 GkeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=I5/lZY2w; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id e32-v6si1946037plb.34.2018.02.23.07.41.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 07:41:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=I5/lZY2w; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 2C93B2034D8D3; Fri, 23 Feb 2018 07:35:07 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::242; helo=mail-wr0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E335122436933 for ; Fri, 23 Feb 2018 07:35:04 -0800 (PST) Received: by mail-wr0-x242.google.com with SMTP id n7so14550684wrn.5 for ; Fri, 23 Feb 2018 07:41:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=eWAl4hF1zpUsmY7wOzswlTvVwWI74fgVMwTZG9B038c=; b=I5/lZY2wKlQrbUR7NacOhYHUuePU9Mx+lXKMM6R6DCDLd+SR+Wzl0RibGlbOlM59vV tZVPH20UPVNE5xWvnT0X5nfDJZOr+0k7wmKJPPWxUMTJQJ0OKWS8hjtziZjNwqSIfaGA LN8BmPARXlU5YLd6QpPmIpL4ycquDm5770u14= 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; bh=eWAl4hF1zpUsmY7wOzswlTvVwWI74fgVMwTZG9B038c=; b=UhZJIo7j3DQVbwa9jkH0n1eAn7tnZiM7RwqUJPPOoGCR4GMI9IqUoBoF/pUUIkd5FT Blc4GLyBYzxpQcaWfvuKogs4qdvloJLtMk5Z1yBPP2p84SAQIsV9r2s3PVgOZm6pmUTY M7vKaQJmmFuhteY6l8V/4ZkCsDLMR/SQCmQVhZixBV4aggvPAEgHlbJTsQ4trTa+9jJ1 r040wy1bQrflnO500kX24cBxzTtEthcl8qQeP0/OsDscD/QUoIttA/ZdNNWSkjsO4JeB kfNUefGi5nUpFupj0o2pGSRJirHlRnNErwul3FBl7Ys9Nlg0FOcTOSK3jmslHnnuDAEZ qbmQ== X-Gm-Message-State: APf1xPCTwhwl6/erpvkqEXrbuVkMQsRdExqzRPsOGakMbLCDsLB+c5wj QX0DzU7y0TGFxxrkiBgVzRPSiaCQLP0= X-Received: by 10.223.151.129 with SMTP id s1mr2117193wrb.206.1519400464651; Fri, 23 Feb 2018 07:41:04 -0800 (PST) Received: from localhost.localdomain ([196.90.4.100]) by smtp.gmail.com with ESMTPSA id 188sm2273215wmg.29.2018.02.23.07.41.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 07:41:03 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Fri, 23 Feb 2018 15:40:46 +0000 Message-Id: <20180223154052.9828-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH edk2-platforms v3 0/6] Add Secure96 mezzanine support X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This v3 (as did v2) implements a complete split between the generic 96boards LS connector support and its associated plumbing (defining which I2C, SPI and GPIO controllers are connected) on the one hand, and support for the Secure96 mezzanine board in particular on the other. More specifically, all Secure96 PCDs were dropped, and the only platform specific configuration that remains is including the Secure96 driver and the driver for its peripherals to the build. v3: - The ATSHA204A driver has been merged, so it has been dropped from this series. - Rename Platform/NinetySixBoards back to Platform/96Boards. Note that in some places, using leading digits is problematic so the string does still occur in a couple of places. - Rebase onto EDK2 that has the MultiPhase.h VFR changes. Patch #1 introduces the mezzanine protocol, which abstracts away from any particular mezzanine implementation. Patch #2 introduces the generic I2C plumbing for any mezzanine that exposes I2C peripherals. Patch #3 implements the protocol that asserts the presence of a 96boards LS connector and the type of mezzanine connected to it. Patch #4 adds the Secure96 driver, which incorporates the DT overlay, and a description of the I2C peripheral. Patch #5 adds a LS connector driver for configuring the type of mezzanine, and to interface with it at end of DXE time to install the appropriate DT overlay. Patch #6 wires everything up for the DeveloperBox platform. Ard Biesheuvel (6): Platform/96Boards: introduce package and mezzanine protocol Platform/96Boards: introduce I2C driver Platform/96Boards: introduce LsConnector protocol Platform/96Boards: add a driver for the Secure96 mezzanine board Platform/96Boards: add driver for low speed (LS) connector Platform/Socionext/DeveloperBox: add 96Boards mezzanine support Platform/96Boards/96Boards.dec | 73 +++++++ Platform/96Boards/96BoardsI2cDxe/96BoardsI2cDxe.c | 206 ++++++++++++++++++ Platform/96Boards/96BoardsI2cDxe/96BoardsI2cDxe.inf | 51 +++++ Platform/96Boards/Include/Guid/FormSet.h | 23 ++ Platform/96Boards/Include/Protocol/LsConnector.h | 35 ++++ Platform/96Boards/Include/Protocol/Mezzanine.h | 71 +++++++ Platform/96Boards/LsConnectorDxe/LsConnectorDxe.c | 221 ++++++++++++++++++++ Platform/96Boards/LsConnectorDxe/LsConnectorDxe.h | 32 +++ Platform/96Boards/LsConnectorDxe/LsConnectorDxe.inf | 57 +++++ Platform/96Boards/LsConnectorDxe/LsConnectorHii.uni | 27 +++ Platform/96Boards/LsConnectorDxe/LsConnectorHii.vfr | 45 ++++ Platform/96Boards/Secure96Dxe/Secure96.dts | 85 ++++++++ Platform/96Boards/Secure96Dxe/Secure96.h | 26 +++ Platform/96Boards/Secure96Dxe/Secure96Dxe.c | 211 +++++++++++++++++++ Platform/96Boards/Secure96Dxe/Secure96Dxe.inf | 67 ++++++ Platform/Socionext/DeveloperBox/DeveloperBox.dsc | 34 +++ Platform/Socionext/DeveloperBox/DeveloperBox.fdf | 10 + Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.c | 9 + Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.inf | 2 + 19 files changed, 1285 insertions(+) create mode 100644 Platform/96Boards/96Boards.dec create mode 100644 Platform/96Boards/96BoardsI2cDxe/96BoardsI2cDxe.c create mode 100644 Platform/96Boards/96BoardsI2cDxe/96BoardsI2cDxe.inf create mode 100644 Platform/96Boards/Include/Guid/FormSet.h create mode 100644 Platform/96Boards/Include/Protocol/LsConnector.h create mode 100644 Platform/96Boards/Include/Protocol/Mezzanine.h create mode 100644 Platform/96Boards/LsConnectorDxe/LsConnectorDxe.c create mode 100644 Platform/96Boards/LsConnectorDxe/LsConnectorDxe.h create mode 100644 Platform/96Boards/LsConnectorDxe/LsConnectorDxe.inf create mode 100644 Platform/96Boards/LsConnectorDxe/LsConnectorHii.uni create mode 100644 Platform/96Boards/LsConnectorDxe/LsConnectorHii.vfr create mode 100644 Platform/96Boards/Secure96Dxe/Secure96.dts create mode 100644 Platform/96Boards/Secure96Dxe/Secure96.h create mode 100644 Platform/96Boards/Secure96Dxe/Secure96Dxe.c create mode 100644 Platform/96Boards/Secure96Dxe/Secure96Dxe.inf -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Leif Lindholm