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::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-Google-Smtp-Source: ABhQp+QJVkAYISCGf0zsMqpMSAOxhfBq20YWRu4Xi7Diec7FAEZ+XNd7sZ0mwMnhYWRDO5FB5ckZkQ== 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 Cc: daniel.thompson@linaro.org, Ard Biesheuvel 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: [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: , X-List-Received-Date: Wed, 01 Nov 2017 13:08:01 -0000 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