From patchwork Thu Aug 22 01:57:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 268927 X-Patchwork-Delegate: iwamatsu@nigauri.org 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 3073A2C00C9 for ; Thu, 22 Aug 2013 12:05:23 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C8C404A09C; Thu, 22 Aug 2013 04:05:20 +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 kfO+OtsZbnG0; Thu, 22 Aug 2013 04:05:20 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1DF9A4A09D; Thu, 22 Aug 2013 04:05:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2C0514A068 for ; Thu, 22 Aug 2013 04:05:02 +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 ntZsQ8YQOoRR for ; Thu, 22 Aug 2013 04:04:56 +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-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by theia.denx.de (Postfix) with ESMTPS id 97E994A080 for ; Thu, 22 Aug 2013 04:04:47 +0200 (CEST) Received: by mail-pa0-f45.google.com with SMTP id bg4so1481616pad.4 for ; Wed, 21 Aug 2013 19:04:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=lodAFj7Ju2HQyOuLatYkCUZRItH626FB5figApPItkY=; b=VyffVbvibnOuJ3scNIAoDSVkBQlQbw1WxDeUo9jeTPC43EXJjEAyCCf6iMIQ4truhq 8twe3os3RJzNq/M/iWwi/GRIv4BxNYAV8U8iks3R1HRBxk1Z1ZkM6LC/dbxu3z/Q7R9H HI3g1siI2fztIejCLtH4Oi61URYI2guLA5C22LRb3RrNBHUcU7HDOlhq5kS1DBFZMVZ+ vtSe8rhzx0QIAdiRIhjFu/SZg6NMb+UGrhnl0G4lnPhlBVV+TkGLRb0ty2yC3oUFdKK1 oBWKjbL3+eASWNPryi5115Rfgz4sYG5EqsK17Hl4yxlTaavP/64QwNIiB0sXLbW1CuIb XXyw== X-Gm-Message-State: ALoCoQlRl9+YkeSPUTL02xPTm2USHR14EXFO6GpjjDBJ5A2bj8gFLGgEqKaOWg7yzU/38INVEMxO X-Received: by 10.68.226.7 with SMTP id ro7mr2701723pbc.72.1377136661254; Wed, 21 Aug 2013 18:57:41 -0700 (PDT) Received: from xps-iwamatsu.renesas.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id py4sm11365154pbc.14.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 18:57:40 -0700 (PDT) From: Nobuhiro Iwamatsu To: iwamatsu@nigauri.org Date: Thu, 22 Aug 2013 10:57:13 +0900 Message-Id: <1377136635-27875-4-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1377136635-27875-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> References: <1377136635-27875-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com> Cc: u-boot@lists.denx.de, Nobuhiro Iwamatsu Subject: [U-Boot] [PATCH 4/6] sh: timer: Change The definition of clock of TMU 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 The former SH/TMU driver had calculated timer based on CONFIG_SYS_CLK_FREQ. The newest SH/TMU newly needs calculation of the clock for TMU. This patch defines clock CONFIG_SH_TMU_CLK_FREQ for TMU and changes it to CONFIG_SH_TMU_CLK_FREQ from CONFIG_SYS_CLK_FREQ. Signed-off-by: Nobuhiro Iwamatsu --- include/sh_tmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sh_tmu.h b/include/sh_tmu.h index 96c589d..f5b42fa 100644 --- a/include/sh_tmu.h +++ b/include/sh_tmu.h @@ -69,7 +69,7 @@ struct tmu_regs { static inline unsigned long get_tmu0_clk_rate(void) { - return CONFIG_SYS_CLK_FREQ; + return CONFIG_SH_TMU_CLK_FREQ; } #endif /* __SH_TMU_H */