From patchwork Wed Jul 11 09:06:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 141695 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp39559ljj; Wed, 11 Jul 2018 02:05:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdHIhRSlJv42GIRI2WQtjMnALq6YWBR+3aXt8dIJbiUBqexLG1TNKhCcM7LgvlWmusaMEO6 X-Received: by 2002:a50:8561:: with SMTP id 88-v6mr31061827edr.181.1531299941455; Wed, 11 Jul 2018 02:05:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531299941; cv=none; d=google.com; s=arc-20160816; b=IDB4GGDTZqPYR+uAAR0kyo5vVJ/oukYVCLp3e++vhDMcigws8yYzBP7kM2dDOtjUO4 I+2Tm3LF7m9LPjBYzg6NFWoYog7FEl53adLORsj2VbkISQQTMeQkyNx0azlw4xk3hylW P4ypN1k7DNZRZCtiwXcpGAvtZOd9ht2EdR1ihhs0ojMAPNlJCYuE7xOyJf4X4tO3imzr +9pIIRxrD79ameufQJ3jSh9Bd/ep1ExVjIv7NOfj+bJLhYvoeB2wD/sZbcOvllBDPUd1 9hcJqXKmk7yhlbbMRIEBhJsb+Gsctadq1xnXQ1DmU6EHrzuCHEEy/yjo44krVPQ4bePQ 0flw== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=Iq/xyXMrLqZthlv1JZdceEuyfyF2K/0ySXt349cA/ps=; b=Po/7nYA88622C3ppRYcIBFJW3p09veKOVmbfvwb7QsLP6euTTQ+WFYmSpc7xyOGwsG trc1UL9mE8dFrmyPAuFnvHN2V/S7hhdrxWfYLv5SjikjPp0l7YvPBsQpowIFLDg+uFsp FjuTTEcFyAHLtmr1zhLZgwPJW5FdK8yOGrVVdJ+mXbRuNOI5WZXegG/oE1FPWAK94E4U q3KkGeEkog3CrBPPsnz/qDp9oEnBfc552FIF9GPtKZVyqSfcjyjUvBW5hIQSrha3INfm Bf5l3I2aeST9FVfWmGMugHgXt2jZwi4tykVlLea1f8U1QXRfwGf98peuWyELSNz1B6Fj IAfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Sm4GwtXL; 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 v3-v6si3693735edl.190.2018.07.11.02.05.41; Wed, 11 Jul 2018 02:05:41 -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=Sm4GwtXL; 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 016F7C21E60; Wed, 11 Jul 2018 09:05:34 +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=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 31D9CC21E02; Wed, 11 Jul 2018 09:05:32 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C53EFC21E02; Wed, 11 Jul 2018 09:05:12 +0000 (UTC) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by lists.denx.de (Postfix) with ESMTPS id 8D67FC21E2F for ; Wed, 11 Jul 2018 09:05:08 +0000 (UTC) Received: by mail-pg1-f173.google.com with SMTP id r5-v6so2699361pgv.0 for ; Wed, 11 Jul 2018 02:05:08 -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:in-reply-to:references; bh=o1hDtEgwFaa/8a8PvhyrsU98G4DSTfgpf2EjOcX9+rQ=; b=Sm4GwtXL0ujGYD1OUdulyO9chujuBRZZ7aa3K47JDRUVQWPTJLg0DZx2x58qbNLOwx DjyHq83rKpo7kYSD066ST2D6D8Lxa2GkrWvu4BRVUKSpwh+NZ19z6o5tz28XWzSdrQNu E65Gb5KCuLvF0f4AI3krcHEQbYs2XKEc3nyyQ= 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:in-reply-to :references; bh=o1hDtEgwFaa/8a8PvhyrsU98G4DSTfgpf2EjOcX9+rQ=; b=Vk0EJcNGDXDw/VvKa69K+1bcxwxEqPe9i1PIGJ+leBiKqr9v6fcEtnC7xTzFZFxRpX o6Awbq3IQOKM4v2ivz/EVi5Voq5eWMnlbdAfhGmoA+AXRR0F6pcR2X85ffti4kNlXaV6 YI59TmhawK9IHc3CVxZfiuP14jgU/A050ZI/+KMiiUzQ6URacqg8tUjG2xiOhHC2DR1u vC7j82SwNwkB/U7OiLYYwkayEcjlObQd0iQxYTKYzYC+Ts/GhnGehSFO5uUPg0jlOJen TjrpVXfhncWlx+oXdFuaVt5zIBseAjCxUsUKy2aWU7DRRJrmw9ttETanqSRM9WC8zB95 9hOQ== X-Gm-Message-State: APt69E3PQpcZv+4lr7IIk+5Bib4OQjFmSINqnass0jiuBYg9wV6s+kwu 3+fPFxpTIPTvhFtm3nBKzZpDrw== X-Received: by 2002:a63:e914:: with SMTP id i20-v6mr19551984pgh.10.1531299907253; Wed, 11 Jul 2018 02:05:07 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id y9-v6sm26805169pgv.31.2018.07.11.02.05.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jul 2018 02:05:06 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, sjg@chromium.org, tuomas.tynkkynen@iki.fi Date: Wed, 11 Jul 2018 18:06:06 +0900 Message-Id: <20180711090608.11526-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180711090608.11526-1-takahiro.akashi@linaro.org> References: <20180711090608.11526-1-takahiro.akashi@linaro.org> Cc: xypron.glpk@gmx.de, agraf@suse.de, u-boot@lists.denx.de Subject: [U-Boot] [PATCH v3 1/3] rtc: compile date.c if DM_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" rtc_to_tm() and rtc_mktime() are required for some RTC drivers, at least PL031. Without this patch, we also need to enable CONFIG_CMD_DATE even if we don't want or need this command. Signed-off-by: AKASHI Takahiro Reviewed-by: Heinrich Schuchardt --- drivers/rtc/date.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/date.c b/drivers/rtc/date.c index 1256ffe374..f1ac738a8a 100644 --- a/drivers/rtc/date.c +++ b/drivers/rtc/date.c @@ -9,7 +9,8 @@ #include #include -#if defined(CONFIG_CMD_DATE) || defined(CONFIG_TIMESTAMP) +#if defined(CONFIG_CMD_DATE) || defined(CONFIG_DM_RTC) || \ + defined(CONFIG_TIMESTAMP) #define FEBRUARY 2 #define STARTOFTIME 1970