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::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-Google-Smtp-Source: ABhQp+RbNo4w3tG4MfKlouUPqVuBEaEg1eDWjmUhD1WUVPb5BiPr1DouzFAgiOtFRm5GmBo1r6Dp1Q== 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 Cc: udit.kumar@nxp.com, Ard Biesheuvel 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: [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: , X-List-Received-Date: Fri, 10 Nov 2017 08:05:34 -0000 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