From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AH8x224+PCC3QJ31ZrW6RCnxCOUkgjxJhLTANh583TCaRrO9b0bMuko8KyYoZfj+3/yxBOvb6Q1MbQ== 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 Cc: leif.lindholm@linaro.org, Ard Biesheuvel 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: [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: , X-List-Received-Date: Fri, 23 Feb 2018 15:35:05 -0000 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