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::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-Google-Smtp-Source: ABhQp+REi0Q7VKYO5lOefh1MAF95xIhv151myzQFTbT756umzH/nVF6w1dcaG8h4qfIvBGxjaEZJRQ== 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 Cc: udit.kumar@nxp.com, Ard Biesheuvel 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: [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: , X-List-Received-Date: Mon, 06 Nov 2017 18:16:47 -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. 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