From patchwork Thu Jun 13 03:24:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 250961 X-Patchwork-Delegate: albert.aribaud@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id E9B132C0079 for ; Thu, 13 Jun 2013 13:25:42 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 96ADA4A04A; Thu, 13 Jun 2013 05:25:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nprj9TO1AigK; Thu, 13 Jun 2013 05:25:41 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5D49D4A03A; Thu, 13 Jun 2013 05:25:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A34344A02A for ; Thu, 13 Jun 2013 05:25:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ySfLcWXS7ENR for ; Thu, 13 Jun 2013 05:25:10 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=SKIP(-1.5) (only DNSBL check requested) Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com [209.85.214.170]) by theia.denx.de (Postfix) with ESMTPS id 81F184A026 for ; Thu, 13 Jun 2013 05:25:08 +0200 (CEST) Received: by mail-ob0-f170.google.com with SMTP id ef5so14358393obb.15 for ; Wed, 12 Jun 2013 20:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=BvZNQMWKQfGRaY1nEFJZQk8eUhRv/B6KepKN4mnbv1o=; b=GSbhocHjUS63ndzU0kuOyRPvI7fCLJdoVAiO6/VJDdIrFXRIJV0M/LisYXqt23ZN1i SiX8eajJZl9J2hPrLD3nunCNazATEhkHa0hTQ9h9VUjDo6b4q8yLuMVR8n4zsRQWzqYH /LwhNaG/28BmPDIe9XncF46pcs+VxedlizGubyWvKlki28nwPrgzjE52QSb3RBjXm8Rj Vmd3XnaFTkcmbTHIKd0owwlsHd2unq0MCdz1OG18hOThaKOFjicXjrbg6r1vBz9xWhvz YnXe2rYYOi96zCk942oDcdUVP/ZsFyGUuKV+oDqDcW3CuFDuJx2/zdQjQab+BkwIj/97 0QIA== X-Received: by 10.182.171.9 with SMTP id aq9mr17534860obc.16.1371093907452; Wed, 12 Jun 2013 20:25:07 -0700 (PDT) Received: from rob-laptop.grandenetworks.net (65-36-73-129.dyn.grandenetworks.net. [65.36.73.129]) by mx.google.com with ESMTPSA id oe10sm37501996oeb.6.2013.06.12.20.25.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Jun 2013 20:25:06 -0700 (PDT) From: Rob Herring To: u-boot@lists.denx.de, albert.u.boot@aribaud.net, trini@ti.com Date: Wed, 12 Jun 2013 22:24:48 -0500 Message-Id: <1371093894-16424-4-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1371093894-16424-1-git-send-email-robherring2@gmail.com> References: <1371093894-16424-1-git-send-email-robherring2@gmail.com> Cc: Rob Herring Subject: [U-Boot] [PATCH v2 04/10] ARM: highbank: fix get_tbclk value to timer rate X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Rob Herring get_tbclk should return the timer's frequency, not CONFIG_SYS_HZ. Signed-off-by: Rob Herring --- v2: no change, resend arch/arm/cpu/armv7/highbank/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/highbank/timer.c b/arch/arm/cpu/armv7/highbank/timer.c index 0f985e2..da33d3c 100644 --- a/arch/arm/cpu/armv7/highbank/timer.c +++ b/arch/arm/cpu/armv7/highbank/timer.c @@ -124,5 +124,5 @@ ulong get_timer_masked(void) ulong get_tbclk(void) { - return CONFIG_SYS_HZ; + return SYSTIMER_RATE; }