From patchwork Mon Nov 6 18:20:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 118076 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3061174qgn; Mon, 6 Nov 2017 10:20:47 -0800 (PST) X-Google-Smtp-Source: ABhQp+RAi1MC47W5baOUD/c9RUDPPW6ZJpib3jecZsg3H0sq1QoZtCVguXd/OI33ZZHVXuB9cRia X-Received: by 10.98.66.206 with SMTP id h75mr17840607pfd.76.1509992447722; Mon, 06 Nov 2017 10:20:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509992447; cv=none; d=google.com; s=arc-20160816; b=UZkpJf/DLXFpmxZ+0QFyJgQE7yQAa0heN1KI7Mpd/dILMm/ZTKH3IWM4XsrEQGmMMw +bJUgwbxc0BWAcZLnSV9Z3M40Iu95qnLEwcUdgVyt4yao+vTnr/zNYviBldVinYRgr75 oJM/dx4d6OjVVqMPGF9wA+bOfwIDI+BTKTMkHjf5pYCLhRGnjT3mN1L6sIIGQ26R2o6W HSifSFFmtXeB9eQIy1iT2S2JmvVePRIhA6ssZboCxgZ/aYsmfoRorUcWlf/KNnLc3ESs fxMjxFAMEqTCIqiPKBWYjzljlvDDt4Ao01cjDLqusRKfuthqB54QYGwcA6ITaaCdQcPZ 4NEQ== 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=efPoPtL81TTJdr4cMSu02XnEeENVWkyHXQvKqJUP9TQ=; b=sDQ1lRnxSa1Wz49cNrvkdeq41T1pcvj+yTzXZuvgzs46aLYJZKYkoJ8fxAZ9j6yGBS /a7FDI/LHN9NXmgR7jn5BKVIopQbT4xYml7kQ6S8jrXfVp0sS9EACk8v5ucIemjKrkRV bdqN6YpZeo41b0mQHIsYnYMIB6fTi12hvWV2e4f1xHDFbNru4d2/wFxcYdQ9CjycIS4O 6kRgCQePYFL38PQdVJKCzcUYWkJRc6i8Tfd0DnZvz9WHIIZb2EIpRlzdsS21OoorZw4M kWgrXolB8r8h/z7VzW7gje5stxRIXJAZzfVTOXB5CCBGCAnyHCjoFnIY8zCK7I9kp73Y AQwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TSoaObaX; 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 a67si12571270pfe.76.2017.11.06.10.20.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 10:20:47 -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=TSoaObaX; 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 F3BB42035561E; Mon, 6 Nov 2017 10:16:47 -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::22e; helo=mail-wr0-x22e.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::22e]) (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 7023B202E5CD3 for ; Mon, 6 Nov 2017 10:16:47 -0800 (PST) Received: by mail-wr0-x22e.google.com with SMTP id y9so9501421wrb.2 for ; Mon, 06 Nov 2017 10:20:46 -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=1LoOfXsmV6Cu4xDWSW0swpijvJKT73z25wzaFrqfdjQ=; b=TSoaObaXzzQrxm6VwukiE/Lu+4AiNg8AiddzJioaQSivVN+FFkJqcU7iF+zNegBfMK EsJItqrmmh6d4JugyGctIJXoPPmnGkEH7SavIEWgtI+ochtljbyEF1IIpjGkQRQJ6V19 ahwWlh63/9UFoLdArBZMLXxXiAyld1/yDgeVk= 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=1LoOfXsmV6Cu4xDWSW0swpijvJKT73z25wzaFrqfdjQ=; b=nHYC/vlbMpSFxaSNJj9YrNmbGDmGDt1rIW5Zi8JxHLjeez8XjErD6URYBJYjxJoNPO dI73UyRZrzYYisVQJozjUVbj/6h5JsLX2HA2lt6Xnj5a1iLoo8CDCRYf7gqGKTeaFUaW T4Hb/+HOpM4ci1v+Ak0Gi5moNwyhZGxpnVCflmQRs/VV0v68KSUm9MR0hWtfUZfWTbHv zhtjV9hr2/HBo1wudQPyqC31GNcA8FGkKUZTBaYPfPOZg7Lg9ttUC9273HtUrhFuq9Cp Fysu6MgWyb7TQjmyPk6LwxV51Uu+a5MCBDhPW9teaSxJGtHPvFgzcS08AcqTFRs2Dxmt BUmg== X-Gm-Message-State: AJaThX7fn68Jyd2hsS/lftswdJ4l9R9yZoyBPuxXstJslj+R0im/L6WZ MWjPUaL613ADQInHZLwZdzCDkDDu1hM= X-Received: by 10.223.187.3 with SMTP id r3mr2274807wrg.34.1509992444391; Mon, 06 Nov 2017 10:20:44 -0800 (PST) Received: from localhost.localdomain ([105.129.222.2]) by smtp.gmail.com with ESMTPSA id w206sm4516507wmd.36.2017.11.06.10.20.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 10:20:43 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Mon, 6 Nov 2017 18:20:35 +0000 Message-Id: <20171106182038.16750-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH v2 0/3] ArmPlatformPkg EmbeddedPkg: consolidate shared RTC functionality 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: Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" This moves input validation and recording of the DST and timezone settings (which cannot usually be done by the hardware) into the core RTC driver in EmbeddedPkg, and removes it from one of the RealTimeClockLib implementations, the one for the ARM PL031. v2: split PL031 into two reinstate (but fix) the PL031 timezone handling (after reading and even understanding the original code) Ard Biesheuvel (3): EmbeddedPkg/RealTimeClockRuntimeDxe: move common functionality into core ArmPlatformPkg/PL031RealTimeClockLib: remove validation and DST handling ArmPlatformPkg/PL031RealTimeClockLib: ignore DST setting when timezone is set ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c | 194 ++------------------ EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c | 171 ++++++++++++++++- EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf | 11 +- 3 files changed, 188 insertions(+), 188 deletions(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel