From patchwork Wed Nov 1 13:11:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 117689 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp868873qgn; Wed, 1 Nov 2017 06:11:56 -0700 (PDT) X-Google-Smtp-Source: ABhQp+T+MUjDdeZNbNROjJzmL4vigd1cW86E+1UqdltwtvtWfFs//RiYhEMfw+p0Xxc3luAuQ3dg X-Received: by 10.101.69.8 with SMTP id n8mr6283637pgq.79.1509541916193; Wed, 01 Nov 2017 06:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509541916; cv=none; d=google.com; s=arc-20160816; b=JjkSqXwt+VIRlLOLncSBqlplv0ErRXk45bi43wEtzqJNw4eBJjhjlKTYNxbkHstiX7 +W4+zDmAaJ7fnYiJimCNIQiruPAG9Dq8u8y33lapnWn33IS6Ll86ej34wD+4v3cKWmq4 2l4M04T4ZUyhralO+ykXBsbI4wyw1SFwiAyHoXYISnq/skETK67pgA1zNUxYOl/s/8Wz 9cmssEy/O2bKYZY6s6MReiAnllvObokLhizObS8bAWirV/hAbxNsVsTBnN4j/n++N6sF /d+qXG2+9tzWJfvvWuhkl5ef7Pc3PzViyqjLF30i7rJA85fKcocJxfq2c8+7U3XACgOQ tSmg== 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=y2L3sz5OVamMFW5+Ko4bBql/hKQGubABZLneeNJHr6c=; b=pCOmkMHdRaNuLHKdlsAK7fkMlB/D0C/6iHH4KInKRJbwzx68ykdqzvDywYDkTjWjzc zIxKZPqBVObJnsBoN2bEIEGGxfAdmk7rt5R8Rx7U9YbASuJKOMuljPrFwlc7TMwHBCCm FgAemdoq3b3Wn2ycl7Qby7K9/tPPjvlYLuJZTIJI3IeH9o7msu0p7PgCb9fP/9gmfyR8 HzR8yOWQx4+lujbpoFqkxUPC2YVt375jjlFaAYJOjyJnzz5NKCg+SW5YDOJNMMm2bpgx gnb2Qpsg7GVxUk3HqgQetALMdPATYJ8iBNz1FAXWN5Gezyq5ZPekBbWaPKk+xoFe8Ylf Rq6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PuoWv5il; 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 p1si906652pgr.812.2017.11.01.06.11.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Nov 2017 06:11:56 -0700 (PDT) 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=PuoWv5il; 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 07ECD21FCA287; Wed, 1 Nov 2017 06:08:02 -0700 (PDT) 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 BAA7F21FCA285 for ; Wed, 1 Nov 2017 06:08:00 -0700 (PDT) Received: by mail-wr0-x243.google.com with SMTP id p96so1905055wrb.7 for ; Wed, 01 Nov 2017 06:11:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=jLFLzWw2K+5WZOCKjSOAl0rDgAWUoj38Sydq0Ckdh/8=; b=PuoWv5ilGaoU6je3YBYeAbjMleA/RRpmuB01ATdL1E86b81r9dfXmZDCDIy9kDtq5g 54q0B9Zh6KhyL39Db/X5Xq33DlJwJcCAD/5o0IyeI5EFC7Ja6VnG/DFQLLI0LEl8vWPb HeBhy25OOWlGjtXvx26++Mk8h5I6Q8c6WpPF0= 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=jLFLzWw2K+5WZOCKjSOAl0rDgAWUoj38Sydq0Ckdh/8=; b=o9vw7sszXg2kXK+dBqTbD/jnmLysSdPfyf5q4M7HrRgEJdVAu9SH+kGdUvOWsxNnr5 IvSXHW8A4zZBObCXfFmp+MIhB6x3lOIognzDeuFVpvbMyttRvpO4nS1/CHA0xFQpmTY6 CkS1XksSIvHfrIBJs/WckyMpvlp743OzEoX7Akg5QridV0y+Y3XLqACe5Dvk7fsfx4JW outQ+hOAnFulL8x0y81/CFzPH7ptl7otC+t787QhYRx1EiEXt7rg03hYw0zajbjGstSp m60r84V90dY1/hDdRrwCSzp+ccNQRDDD9oxC8ZIiOVIRDPIcJ2YPT1hR87EkJk1DizL1 xmxQ== X-Gm-Message-State: AMCzsaUBDL+uONeu3pKeOdDpd1TPpT2ygYv0v6M2MysOS6sdN4Tt4Ipo ndc16wKnELXMvqz2QuYPH2w/MjJm/Fg= X-Received: by 10.223.153.234 with SMTP id y97mr4787343wrb.165.1509541911873; Wed, 01 Nov 2017 06:11:51 -0700 (PDT) Received: from localhost.localdomain ([105.129.222.2]) by smtp.gmail.com with ESMTPSA id o13sm636749wrc.10.2017.11.01.06.11.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Nov 2017 06:11:51 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Wed, 1 Nov 2017 13:11:43 +0000 Message-Id: <20171101131145.16459-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH 0/2] PEI phase boot mode setting X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: daniel.thompson@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Two patches to allow a platform to set the boot mode from its PlatformPeiLib implementation using services exposed by a GPIO PPI. These are needed to implement a 'clear NVRAM' feature based on a DIP switch on the Developer Box platform. Ard Biesheuvel (2): EmbeddedPkg: introduce GPIO PPI ArmPlatformPkg/PlatformPeim: allow PlatformPeiLib to set the boot mode ArmPlatformPkg/PlatformPei/PlatformPeim.c | 12 +- ArmPlatformPkg/PlatformPei/PlatformPeim.inf | 1 + EmbeddedPkg/EmbeddedPkg.dec | 3 + EmbeddedPkg/Include/Ppi/EmbeddedGpio.h | 151 ++++++++++++++++++++ 4 files changed, 162 insertions(+), 5 deletions(-) create mode 100644 EmbeddedPkg/Include/Ppi/EmbeddedGpio.h -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel