From patchwork Wed Jul 4 07:36:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 141008 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp489873ljj; Wed, 4 Jul 2018 00:36:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdAW7TjBEDxdK90EhwdOUigOA7kNX/RtPKkFO3wJDYrkUBbc+vPfQc1le5BghjRGhH5m+Ny X-Received: by 2002:a50:9226:: with SMTP id i35-v6mr1458538eda.27.1530689767653; Wed, 04 Jul 2018 00:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530689767; cv=none; d=google.com; s=arc-20160816; b=MWMnnBDZ3E23VtUdcf7fd28636ZQW9omNnLzJXVPGlffqRviaH2IVY1HyEUko3gm6f vzIxGgMimIFT214KRpMp4apdGz12cWY0yEGbuLy1LJgewlPFvaX4BkGuA3qadjy9sC7I 51kNxtmJyU8AH87goxpyq5ycy7WvYQWCnfO0pZEGQ9ebWuB23KuGFV4J8twGw+hjZjzY B6FgMXd/BbLOaJpAlx229Jn9ui54MDH3bALMnGyEoeQ1qJiwg0kdlPcXZXp/B+Hv0mW9 1W4K7/wzIo/qBDd5YaBKbcSlNwLqP6w/uYYgfq4/qQ2HVuX/DMbhkllhq39WkRaLhUW+ LXsA== 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 :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=UnOfAruT7TiP5fVXu0Fj6vBvLSj/xI2M3tl7in4qxww=; b=CdQwXEa8gbo4uUgFXJy8AP4RoPdwaydIWKTQ3js9hSBhtgq1TEdms0CLwpaww4U7tI QfDKxvaCtM1xdcXOrhe47AJeTKjnR5Rbm0dq045nIKewV6ikS9e1LiJE30bYse9e2aRE 3Z8UmzI7AElzo5Bi3CwJUZ2lYqyphgbmd1h/GqHa07mrRnuRADd5XH9t3JjfV2grpSXA IUr16urixo91FNuoroqeKToxsqzSpmnu3gjsPDEjuA2Y4DOQ8CyNcHKPLYJ5PoIbabYv vIn/QqPwuQCjd68Q+dSDrdleTS0vA6+RZeu4iuzzu7r9dAYtn4NeLON+0h8SIw/DQFVE 0qXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HE9pl30h; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 19-v6si2558316edz.385.2018.07.04.00.36.07; Wed, 04 Jul 2018 00:36:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HE9pl30h; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 2A70FC21FA8; Wed, 4 Jul 2018 07:36:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 75926C21C50; Wed, 4 Jul 2018 07:36:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2B88AC21C50; Wed, 4 Jul 2018 07:36:00 +0000 (UTC) Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by lists.denx.de (Postfix) with ESMTPS id BBB89C21C29 for ; Wed, 4 Jul 2018 07:35:58 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id y8-v6so772252plr.9 for ; Wed, 04 Jul 2018 00:35:58 -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=NbLzeRRZqYL2APs81t0MACPL41nYcbpH6HN0FnQRiBQ=; b=HE9pl30h+ItbX9TpQ99ivw72W0rWRWWnE6VMX6hiCljx1H1UxlnkDlR0PNkbfNX0/Z pZodklhF2/+37VIr96nbiuZVDQdobLSStyVSLmeZDvESTmNH057k2GgxSC9guCOaJZFT 0M2XvLWRYnwjcCdCX5Fx282E9OW2dea115eug= 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=NbLzeRRZqYL2APs81t0MACPL41nYcbpH6HN0FnQRiBQ=; b=Oq8EmopKdy6FK7Cd2PO0SeQBz+QkSHCpg3lQTe4A/oLjuV+gU6dScTpnsihmFq63AK d2BmYgURigP3LwZ2Xbovfqz3ZiqBy7JSI4XNDrj2qaC2VoGdGdQJRxNiCSAODZu0Ejc5 Vysyxv9MR+/otjIxEY4Yr6a02+N5qB4MaeE+d/OKLGHlIqw93RAMoCz9qNNZiA7oMotO 9fYeqpcOJzVnE2AWGHYWfonjCwiK3boOBcpV5tLnO4NhCSnF2pYOZyO5CkJQlqWQDmoO /akzWvFTy2ecnKF2vgejft9z8JsK6zPquta6ReoxuoUllMfoqOKGFZBsRme4+0vt3OD4 sfJQ== X-Gm-Message-State: APt69E2lxkpkLJ5rBdA8irzkIY/OdlZlrbkg3B17f5Xg+Wu4kpCRqovt KN5O7FMnW+M2v5ohewvIiwVuOA== X-Received: by 2002:a17:902:7686:: with SMTP id m6-v6mr1007492pll.340.1530689757290; Wed, 04 Jul 2018 00:35:57 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id m5-v6sm5035607pfm.27.2018.07.04.00.35.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 00:35:56 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, sjg@chromium.org, tuomas.tynkkynen@iki.fi Date: Wed, 4 Jul 2018 16:36:26 +0900 Message-Id: <20180704073628.23596-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.17.0 Cc: xypron.glpk@gmx.de, agraf@suse.de, u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 0/2] arm: qemu-arm: enable PL031 (RTC) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This is a revised version of my proposal[1]. [1] https://lists.denx.de/pipermail/u-boot/2018-July/333534.html VMs provided by qemu for arm are equiped with PL031 device. In patch#1, pl031 driver is converted to driver model, and in patch#2, this driver is enabled in defconfig of qemu-arm. This patch set is motivated by running UEFI SCT(Self-Certification Test) and measuring time on u-boot on qemu-arm. Heinrich has already posted UEFI's GetTime() implementation. Changes in v2(July 4, 2018) * based on Heinrich's comments, * remove legacy mode interface * enable the driver in defconfig AKASHI Takahiro (2): rtc: pl031: convert the driver to driver model arm: qemu-arm: enable PL031 (RTC) in defconfig configs/qemu_arm64_defconfig | 2 + configs/qemu_arm_defconfig | 2 + drivers/rtc/Kconfig | 6 ++ drivers/rtc/pl031.c | 109 +++++++++++++++++---------- include/dm/platform_data/rtc_pl031.h | 12 +++ 5 files changed, 91 insertions(+), 40 deletions(-) create mode 100644 include/dm/platform_data/rtc_pl031.h