From patchwork Tue Jun 28 15:10:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Riesch X-Patchwork-Id: 924912 Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5SFCi88030853 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 28 Jun 2011 15:13:11 GMT Received: from dlep35.itg.ti.com ([157.170.170.118]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p5SFBW2F032062 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Jun 2011 10:11:32 -0500 Received: from linux.omap.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep35.itg.ti.com (8.13.7/8.13.8) with ESMTP id p5SFBVS7005740; Tue, 28 Jun 2011 10:11:31 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 999B580627; Tue, 28 Jun 2011 10:11:31 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id 6F4D780626 for ; Tue, 28 Jun 2011 10:11:29 -0500 (CDT) Received: from medina.ext.ti.com (medina.ext.ti.com [192.91.81.31]) by dflp51.itg.ti.com (8.13.7/8.13.8) with ESMTP id p5SFBTLQ011975 for ; Tue, 28 Jun 2011 10:11:29 -0500 (CDT) Received: from psmtp.com (na3sys009amx232.postini.com [74.125.149.116]) by medina.ext.ti.com (8.13.7/8.13.7) with SMTP id p5SFBSZV021957 for ; Tue, 28 Jun 2011 10:11:28 -0500 Received: from smtprelay06.ispgateway.de ([80.67.31.101]) by na3sys009amx232.postini.com ([74.125.148.10]) with SMTP; Tue, 28 Jun 2011 15:11:28 GMT Received: from [194.24.158.3] (helo=localhost.localdomain) by smtprelay06.ispgateway.de with esmtpa (Exim 4.68) (envelope-from ) id 1QbZwh-0003UA-Jx; Tue, 28 Jun 2011 17:11:26 +0200 From: Christian Riesch To: Sekhar Nori Subject: [PATCH v2] davinci: da850: add a .set_rate method to ref_clk Date: Tue, 28 Jun 2011 17:10:51 +0200 Message-Id: <1309273851-9238-1-git-send-email-christian.riesch@omicron.at> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: X-Df-Sender: christian@riesch.at X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.5000) s cv gt3 gt2 gt1 r p m c X-pstn-addresses: from [35/1] Cc: davinci-linux-open-source@linux.davincidsp.com, linux-arm-kernel@lists.infradead.org X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 28 Jun 2011 15:14:28 +0000 (UTC) This patch allows setting the input clock frequency of the SoC from the board specific code using the davinci_set_refclk_rate function. Suggested-by: Kevin Hilman Signed-off-by: Christian Riesch --- v2: fixed the commit message and indentation. Regards, Christian arch/arm/mach-davinci/da850.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 133aac4..27fe3ac 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -58,6 +58,7 @@ static struct pll_data pll0_data = { static struct clk ref_clk = { .name = "ref_clk", .rate = DA850_REF_FREQ, + .set_rate = davinci_simple_set_rate, }; static struct clk pll0_clk = {