From patchwork Fri Nov 10 08:09:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 118509 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp1905798edl; Fri, 10 Nov 2017 00:09:39 -0800 (PST) X-Google-Smtp-Source: ABhQp+QL5SxP3jqL7wGgf2M1mP4u9yDB01Jgg07RSbSEA8QButoTxxsjG1rxKW8+pJcq2P5UgsMy X-Received: by 10.98.247.26 with SMTP id h26mr3404312pfi.233.1510301379642; Fri, 10 Nov 2017 00:09:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510301379; cv=none; d=google.com; s=arc-20160816; b=Ct+EG6slIVua/kQfEIrGxn1f0ejWGS3pQqY2TGX10O9n4wCHztTppPvlzLjo1WU5qy kf1oii7X+wDm5RnsvqhCX1ZVyfBphXhDmsb2OKP2d+kHwV6FzHgWrO/+XPYbYS1otxhN vp2oAsP9ieAnCNuECUMJrNuTM4vkJBG0rDumi+Gromesi177ThDACbPOKhGVQWNowme9 fz25DRhpgU6+Yt3WTX4MFjb82mOvNB8oFPuHYaZpaTKwjeOlc8uo58mO5nSsfcH6lS9b wLJ0C41IDMlQCDEVCO2T/UUuQ518CnSRBXa7Lwx0teBuwIgLG7tt0Ii9vOvG2IclC74H VI6A== 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=x3wkMEgLHCuKFErvhtSyqm5o3N23+nxJVPrFSQiATW0=; b=0fja9nrTwiVfbZhSoRn8aaqiNHaRDA9QKMCOc4zqFP5BBZSKienWoEP0qOUBGzX+5S Z6qs3aQab++o/NO4lEqzBkODjPzuoHCWpdhZPbZaP4cwcEUhu3ZYBUXd4oY3gisp6nM7 I7Aq9nwWE5jz1YmDif4Wn+Q6JBgpUL2wAnwArVgJHkr9PgLwbMDcVvc9nIYLKfwCF+gd Qw4VDemOEZRoNKsdifTTihgcMRcxfQr/aAfQ8+X+R1MRLUenNvSNGg3og/eG3wxN1pGe vmfyz/dPR+4iqCPkjvM4o3IzGRpyXRR+2GgVFlJfPmKCnljzqe3DUux8oVM5UsHH0X7I cTRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CY3y5/RW; 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 m13si8207733pgs.575.2017.11.10.00.09.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Nov 2017 00:09:39 -0800 (PST) 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=CY3y5/RW; 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 17E8821B00DC0; Fri, 10 Nov 2017 00:05:36 -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::241; helo=mail-wr0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (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 831202034D839 for ; Fri, 10 Nov 2017 00:05:34 -0800 (PST) Received: by mail-wr0-x241.google.com with SMTP id u97so7874460wrc.1 for ; Fri, 10 Nov 2017 00:09:36 -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=WCWgDBEpYgptmE/di6rMVlCD4E0XJXSDxr4cE/yybiY=; b=CY3y5/RWVG+AnMpIwIj6wxjRN0V0R2plt+GMBaBVyIy3+bK88binKODerO7gw/EG6L M0f7qv98aN7dENtNobp8vbX5qNhMMWqgGUUyr4QHXHJphTUJvTdb1IMK5vwWhcEQU5PS v43+w0HbBIFYBRTbenLPSOp94dpPK2UYzDjBI= 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=WCWgDBEpYgptmE/di6rMVlCD4E0XJXSDxr4cE/yybiY=; b=eQJAq7xyab3qMyrhf9mL0C0h0B5aVo0wPge21MRzHZtb8rVJ0mps4Qy7lEBaa9nfeO sCE9osnkmYexiAqSn8a9b83gl5ku4AVIyc63CBWrihXBl+krY6DXp9rPdO/roQgriEdA BelZlj7eltV3P71Y2SjX1AWZNDMkpqy12Wr532ixFP4d/Zr/tLpfac3GNUF7KthlI95c vuMfI21Fyt6u86NwsRsgYlriP/1OQDTC61Vt8n5z7Vb5wghY7MVLSsxTWkBrU5QkRyGi uuaXhFKR3X4vZKXYvS86ILAD0xLAu7yKBLeC+QQ9jkCq8KPiVYo9AUO8MjsC9eOxs8TA GDAQ== X-Gm-Message-State: AJaThX47t1jKfg2KCJy9R6H61WbFeoO63/ckz/IdVRrgHGp+Q6xY2ol2 FgIMyY7tj1wR+Vtc1he4NxXjbX5PgEI= X-Received: by 10.223.156.138 with SMTP id d10mr2635969wre.214.1510301374743; Fri, 10 Nov 2017 00:09:34 -0800 (PST) Received: from localhost.localdomain ([160.167.170.128]) by smtp.gmail.com with ESMTPSA id r23sm4133884wrc.93.2017.11.10.00.09.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Nov 2017 00:09:33 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Fri, 10 Nov 2017 08:09:22 +0000 Message-Id: <20171110080925.28599-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 Subject: [edk2] [PATCH v3 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. v3: fix leap day assert condition whitespace fix add acks 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