From patchwork Thu Feb 15 17:20:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 128489 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1984824ljc; Thu, 15 Feb 2018 09:21:23 -0800 (PST) X-Google-Smtp-Source: AH8x225x/vERFzH7x0txIJPPIBfoLxB/8CxChluAHbr1n6lNFznTmu4zKqPWpRnhtkbm/oHmwDoP X-Received: by 2002:a17:902:bf01:: with SMTP id bi1-v6mr3152014plb.254.1518715283632; Thu, 15 Feb 2018 09:21:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518715283; cv=none; d=google.com; s=arc-20160816; b=UENDcOPIrA6LY09+eshswoIL5DP6Xxzu38lx1X6cHp/jRr/asfuyJQAOrZVdKhJNOR 2HZml5C+9si0jnTk/8lWT4Yebd8yDFAoGDS2iKwruvWDbRHh006u8m90I6s2Dkd8PrI0 LtPUH2Tq8FoQ+tyzNMHMidNWXLAANzCapVPfYWaJv9vv7oC9jvlF2bMZE8ZsMRnX64Gu GVFdj3bOrEWCwBeg2JfDUL0ii5q4BhrP/YCHvbTPsC6uXnAqOJ5MHzIpGhYBW2JX7kCj lbt+HsDmDK3moY1D6G+wZ/KKDf9zhRG8oQojuBUCbVGPh1u6a4T0K8kiZrAa8lVske8p LpNg== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=AmTw0DlV2yHFPqHRiuYTtLCR8xl+S6kbXIPgQOm28H8=; b=vKEY9CUMVslU6i0vmfuh3na54vx/4yy3YlVGoHuSHhnQQDexLb1wNKXz825b0gUT/L iTVFDtIaWuLn/hQaAuXpPdNfC/wFyGx3/nA0GOPDsO/puGHZCbQT9lv1hcDh5BP2BlNN XBfq9UGRdmqcZ1zaAEgCgo1oC46VmGppuvZ+ydTiwQ8/BmlsH867cPEGhSkZ/WN7RodW mrXBtDWUJWx7yYtPEZzcuTTsuPvxq6wV2E64klf+jt11lA3DYYmJHauTHck+w0QNu/i9 lPG6Pv2w0ddO+H7oBkCLT7inio48NzK2ffIs37GvuYgrA8c8IiL+PDNo4nw6NYbw2Ce9 ezPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GgC8qt7n; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id j1-v6si2659304pld.106.2018.02.15.09.21.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 09:21:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GgC8qt7n; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 0C5AF21F0DA7E; Thu, 15 Feb 2018 09:15:26 -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::243; helo=mail-wr0-x243.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (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 10FD721F0DA4A for ; Thu, 15 Feb 2018 09:15:23 -0800 (PST) Received: by mail-wr0-x243.google.com with SMTP id 34so396799wre.13 for ; Thu, 15 Feb 2018 09:21:16 -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:in-reply-to:references; bh=WHduvIc6AEyj4lo6cO16bInCBVHMJLowoIlEf2LBEFo=; b=GgC8qt7nnaO6ncfZW8OcsGadMTz+HWJ7H2zH0I5/MlZHKGMsJ+qVVODCKgnu/C3GDJ Ry0ZtqNMOqQVYVKuUO2IPza6BV9KlfoSZiy0Kryh5a/WY0qSp6SHHNjLhFj4uJuD5U/B /UPtRE0NInDXjTQ/NSKN99yVf/BmgNvnq/NTQ= 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; bh=WHduvIc6AEyj4lo6cO16bInCBVHMJLowoIlEf2LBEFo=; b=W9hEBbvwRTYQG3nGp6yMWq0QbwiOJNuIeNFoHZNr/iVW1sO3aX5qDwDsVdOOl1JISr dYVSbfgM1WForSolr/na1otaax1Bx2uN07mOe3f3xVrZHoeBDIvu/9U1Q5x6LJHcSU9a gSMiR+Yt7uR+6qU8cFHp1tNGfWaKkjYGE5uyfRwbpBEqFNgMqwr4ztczJSWGdZovR66f RDG4Fyhx/nwivDtm0lV10DLcBdc/dtcxUYLSWqcx+kZViqev1FrcjH8W9bEPlowjpq3K gt+CiglJGPQiZ6F2VyqpDZ1+JU8+BcSb22czPt157bqLvQHlUFU78Tiq+sLMaB/ZPgqo 3FMA== X-Gm-Message-State: APf1xPBPxKvHk05/jCD+0gIyPgRi0HDFXbRpO8mswLo34lt5COhdd6H4 m+c7xE/5r0i3RkEt7QwZVje4uTXP2MU= X-Received: by 10.223.144.163 with SMTP id i32mr3366753wri.73.1518715275188; Thu, 15 Feb 2018 09:21:15 -0800 (PST) Received: from localhost.localdomain ([154.145.114.50]) by smtp.gmail.com with ESMTPSA id j125sm14142363wmd.19.2018.02.15.09.21.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 09:21:14 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 15 Feb 2018 17:20:54 +0000 Message-Id: <20180215172054.27452-6-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180215172054.27452-1-ard.biesheuvel@linaro.org> References: <20180215172054.27452-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms 5/5] Platform/Socionext/DeveloperBox: add Secure96 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: joakim.bech@linaro.org, leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Add the drivers and set the PCD values according to our integration of the LS connector on Developer Box so that, when selected in the menu, the device tree presented in the OS is augmented with nodes describing the various peripherals that are present on the Secure96 mezzanine board. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Platform/Socionext/DeveloperBox/DeveloperBox.dsc | 21 ++++++++++++++++++++ Platform/Socionext/DeveloperBox/DeveloperBox.fdf | 6 ++++++ 2 files changed, 27 insertions(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc index 1e39c29d7910..39bee17dccc1 100644 --- a/Platform/Socionext/DeveloperBox/DeveloperBox.dsc +++ b/Platform/Socionext/DeveloperBox/DeveloperBox.dsc @@ -33,6 +33,9 @@ [Defines] [BuildOptions] RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 + # add ample padding to the DTC so we can apply 96boards mezzanine overlays + *_*_*_DTC_FLAGS = -p 1024 + [BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION] GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 @@ -396,6 +399,18 @@ [PcdsFixedAtBuild.common] !endif gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareRevision|$(BUILD_NUMBER) + # + # 96boards Secure96 mezzanine support + # + gSecure96TokenSpaceGuid.PcdGpioLedPolarity|0 + gSecure96TokenSpaceGuid.PcdGpioLedU1|20 + gSecure96TokenSpaceGuid.PcdGpioLedU2|19 + gSecure96TokenSpaceGuid.PcdGpioLedU3|22 + gSecure96TokenSpaceGuid.PcdGpioLedU4|21 + gSecure96TokenSpaceGuid.PcdGpioParent|"/gpio@51000000" + gSecure96TokenSpaceGuid.PcdI2cParent|"/i2c@51210000" + gSecure96TokenSpaceGuid.PcdSpiParent|"/spi@54810000" + [PcdsPatchableInModule] gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0 @@ -642,6 +657,12 @@ [Components.common] SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareUpdateDxe.inf # + # 96board mezzanine support + # + Platform/96boards/Secure96/DeviceTree/DeviceTree.inf + Platform/96boards/Secure96/Secure96Dxe/Secure96Dxe.inf + + # # I2C # Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/SynQuacerI2cDxe.inf diff --git a/Platform/Socionext/DeveloperBox/DeveloperBox.fdf b/Platform/Socionext/DeveloperBox/DeveloperBox.fdf index c2bc5aa85739..35e2e64c8c93 100644 --- a/Platform/Socionext/DeveloperBox/DeveloperBox.fdf +++ b/Platform/Socionext/DeveloperBox/DeveloperBox.fdf @@ -237,6 +237,12 @@ [FV.FvMain] } # + # 96board mezzanine support + # + INF RuleOverride = DTB Platform/96boards/Secure96/DeviceTree/DeviceTree.inf + INF Platform/96boards/Secure96/Secure96Dxe/Secure96Dxe.inf + + # # I2C # INF Silicon/Socionext/SynQuacer/Drivers/SynQuacerI2cDxe/SynQuacerI2cDxe.inf