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: 942371 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Sm4GwtXL"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41QY7p3gzFz9s0n for ; Wed, 11 Jul 2018 19:05:42 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 35359C21E5B; 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-Google-Smtp-Source: AAOMgpe0kDEj2Snog1zW/P9B+mJYEyfc3iNe9Y/NK+/Dsy2Hcn6vsJt4zHuKuwpv+7E64QqUnBFDZg== 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