From patchwork Fri Nov 8 19:53:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1192144 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 (no SPF record) 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=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="C7B336XT"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 478rts35NTz9sPf for ; Sat, 9 Nov 2019 07:08:37 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 34E0AC21F3C; Fri, 8 Nov 2019 20:02:47 +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_H2, 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 CE022C21F6A; Fri, 8 Nov 2019 19:55:51 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B2EEAC21F6A; Fri, 8 Nov 2019 19:55:50 +0000 (UTC) Received: from mail-il1-f193.google.com (mail-il1-f193.google.com [209.85.166.193]) by lists.denx.de (Postfix) with ESMTPS id CAFFFC21E90 for ; Fri, 8 Nov 2019 19:55:06 +0000 (UTC) Received: by mail-il1-f193.google.com with SMTP id s5so6194229iln.4 for ; Fri, 08 Nov 2019 11:55:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JAoRWuwe0joG/0YdNScuqAMxjUjtlrs6ZdoA0FgsUws=; b=C7B336XT3mT3nX8DcsiXJglGNOXLUH6NClV/vk2reg6EdcPHh7I2eyCso5HlvBVnbl ot1mxE2UsPLC0K5QKkwb2Yz8F9n/CorxpjIu+wyWmXU8SIhOiElZ/ew6WqxZudZOq31S TdalvhtwsSSZ+nzUZTMtmnpnsQvXIE21MIpW0= 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:mime-version:content-transfer-encoding; bh=JAoRWuwe0joG/0YdNScuqAMxjUjtlrs6ZdoA0FgsUws=; b=H7g3nCp3GsL0SQ8pT1DNM063EbDxFJXuniVtBjwSG/brjU6xQM8DQkRjqMigf2g+eD MsAEN8b4MV3ZyHa/dui3FKbJDEzn1njOhlufm+ZY7g9rcVJ5XzNgMeSLu9XxJMcE9nrK aiRNXMaxebWdetmopR4yThWXnJpa3wRCubYVH6A4Babsdj9Em1hZFhIB6tEipllZVQEv Fw45k7sAI+MQz6ydBF7YerJbIfCURCdYEEx0AfN2qr3iIn0pFwdDLqIEAjF+z07CBm4B Adw9L0IVoSzOYcQrTtIHKrp7K7XPCt7e4IscTLSkigEQaAHSmqcI56knkCz/smIHMX8S gVaQ== X-Gm-Message-State: APjAAAVipjxAaQ+iWrh8+arzIChKBeBlX6/mmmMVQ1WsfcbWB5Zqv8YE 8ODpQJ6Cj77GhW4doI9sf6KMfgpeRpwvxw== X-Google-Smtp-Source: APXvYqzFzJJp1DswzubXi8+sB/JXxcZ9I3kjC9IwlSSsdJvgPZPtEaZ1m/IQLQUFZUj2xdWp5eOoNg== X-Received: by 2002:a92:a30c:: with SMTP id a12mr14076756ili.150.1573242905573; Fri, 08 Nov 2019 11:55:05 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id l205sm622306ill.50.2019.11.08.11.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 11:55:05 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Fri, 8 Nov 2019 12:53:26 -0700 Message-Id: <20191108125120.v2.19.Iaa061cc6a0a856a9300b6b03c2f5bb21d81565ff@changeid> X-Mailer: git-send-email 2.24.0.rc1.363.gb1bccd3e3d-goog In-Reply-To: <20191108195348.110648-1-sjg@chromium.org> References: <20191108195348.110648-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Tom Rini Subject: [U-Boot] [PATCH v2 19/41] common: Move wait_ticks functions out of common.h 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This function belongs in time.h so move it over and add a comment. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/cpu/pxa/pxa2xx.c | 1 + drivers/timer/mpc83xx_timer.c | 1 + include/common.h | 1 - include/time.h | 9 +++++++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/pxa/pxa2xx.c b/arch/arm/cpu/pxa/pxa2xx.c index 0b28f0a3ef..43c206b245 100644 --- a/arch/arm/cpu/pxa/pxa2xx.c +++ b/arch/arm/cpu/pxa/pxa2xx.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include diff --git a/drivers/timer/mpc83xx_timer.c b/drivers/timer/mpc83xx_timer.c index dfbc8672b2..69949d5333 100644 --- a/drivers/timer/mpc83xx_timer.c +++ b/drivers/timer/mpc83xx_timer.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include diff --git a/include/common.h b/include/common.h index 20d143deb8..091b54787f 100644 --- a/include/common.h +++ b/include/common.h @@ -286,7 +286,6 @@ int cleanup_before_linux_select(int flags); /* arch/$(ARCH)/lib/ticks.S */ uint64_t get_ticks(void); -void wait_ticks (unsigned long); /* lib/uuid.c */ #include diff --git a/include/time.h b/include/time.h index a1bdefc164..0b3835f053 100644 --- a/include/time.h +++ b/include/time.h @@ -86,4 +86,13 @@ ulong usec2ticks(unsigned long usec); */ ulong ticks2usec(unsigned long ticks); +/** + * wait_ticks() - waits a given number of ticks + * + * This is an internal funciton. Normally you should use udelay() or mdelay() + * + * @ticks: Number of ticks to wait + */ +void wait_ticks(unsigned long ticks); + #endif /* _TIME_H */