From patchwork Thu Aug 20 09:42:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 508979 X-Patchwork-Delegate: twarren@nvidia.com 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 C4F9E14028E for ; Thu, 20 Aug 2015 19:44:23 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=FWCBoleU; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 28EB24B664; Thu, 20 Aug 2015 11:44:11 +0200 (CEST) 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 dFjze0QTAQUE; Thu, 20 Aug 2015 11:44:11 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F10D24B699; Thu, 20 Aug 2015 11:43:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 102EB4B67C for ; Thu, 20 Aug 2015 11:43:55 +0200 (CEST) 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 QRBwsYgYaTXY for ; Thu, 20 Aug 2015 11:43:55 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by theia.denx.de (Postfix) with ESMTPS id 2FCDF4B65D for ; Thu, 20 Aug 2015 11:43:48 +0200 (CEST) Received: by pdob1 with SMTP id b1so12429385pdo.2 for ; Thu, 20 Aug 2015 02:43:47 -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:in-reply-to:references; bh=d2Ch2g66YBlalLtm6HIAqU1tjviyJxOTJWLmzuYhtLc=; b=FWCBoleUfdMahVCNyW9412Dpuym8otni1o9xYs+Fw6Ob//xRj10cDuaRKU3THsESFi wZm4iW9NEnlZ17RMQlI2uXkXLh6FB6PJcr4RRj7+w2TeUsxSUV4GZNc9b4w3rY+7DUii B5luKBu0OsrtW/P1SUmspoqV3hLlYLG8D8wvrxj/T10pDketXVNDRTntRwYahm6bPstz WISUar29IKXxdVQnJabhap8FQUhB0pVpfpQ4iv8g1XDHTbnxTHtCLAM7lVXPWEjaWwNj 3rY7r41J/fcvLlsOZslcSMbQurXAKr5Mcu+slzrvtFD1/+srJZzdWrgTzYAS0y9vBT1J yICw== X-Received: by 10.70.118.39 with SMTP id kj7mr4805238pdb.112.1440063826942; Thu, 20 Aug 2015 02:43:46 -0700 (PDT) Received: from localhost (port-5873.pppoe.wtnet.de. [84.46.23.8]) by smtp.gmail.com with ESMTPSA id fv5sm3704865pdb.19.2015.08.20.02.43.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Aug 2015 02:43:46 -0700 (PDT) From: Thierry Reding To: Albert Aribaud , Tom Warren Date: Thu, 20 Aug 2015 11:42:22 +0200 Message-Id: <1440063743-22838-5-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.4.5 In-Reply-To: <1440063743-22838-1-git-send-email-thierry.reding@gmail.com> References: <1440063743-22838-1-git-send-email-thierry.reding@gmail.com> Cc: u-boot@lists.denx.de, Stephen Warren Subject: [U-Boot] [PATCH 5/6] p2371: Remove hard-coded counter frequency X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" From: Thierry Reding The counter frequency is derived from clk_m on Tegra, but that clock can be configured by the primary bootloader to run at the same frequency as the oscillator (38.4 MHz on Tegra210) or a divided down frequency (most typically 19.2 MHz). Remove the hard-coded frequency and allow the timer setup code to query the correct value at runtime. Signed-off-by: Thierry Reding --- include/configs/p2371-0000.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/p2371-0000.h b/include/configs/p2371-0000.h index 9d7b650d98ca..e190733357b5 100644 --- a/include/configs/p2371-0000.h +++ b/include/configs/p2371-0000.h @@ -60,6 +60,4 @@ #include "tegra-common-usb-gadget.h" #include "tegra-common-post.h" -#define COUNTER_FREQUENCY 38400000 - #endif /* _P2371_0000_H */