From patchwork Tue Jun 14 17:39:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Riesch X-Patchwork-Id: 879732 Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5EHhWW9017461 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 14 Jun 2011 17:43:53 GMT Received: from dlep33.itg.ti.com ([157.170.170.112]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id p5EHgKEk030005 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Jun 2011 12:42:20 -0500 Received: from linux.omap.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep33.itg.ti.com (8.13.7/8.13.8) with ESMTP id p5EHgKT4009578; Tue, 14 Jun 2011 12:42:20 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 6345080627; Tue, 14 Jun 2011 12:42:20 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id 168D080626 for ; Tue, 14 Jun 2011 12:42:19 -0500 (CDT) Received: from white.ext.ti.com (white.ext.ti.com [192.94.93.38]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id p5EHgIHn028243 for ; Tue, 14 Jun 2011 12:42:19 -0500 (CDT) Received: from psmtp.com (na3sys009amx212.postini.com [74.125.149.52]) by white.ext.ti.com (8.13.7/8.13.7) with SMTP id p5EHgHEX030655 for ; Tue, 14 Jun 2011 12:42:17 -0500 Received: from smtprelay05.ispgateway.de ([80.67.31.98]) by na3sys009amx212.postini.com ([74.125.148.10]) with SMTP; Tue, 14 Jun 2011 17:42:18 GMT Received: from [194.24.158.1] (helo=localhost.localdomain) by smtprelay05.ispgateway.de with esmtpa (Exim 4.68) (envelope-from ) id 1QWXcz-0005wp-QX; Tue, 14 Jun 2011 19:42:15 +0200 From: Christian Riesch To: davinci-linux-open-source@linux.davincidsp.com Subject: [PATCH] davinci: da850: add a .set_rate method to ref_clk Date: Tue, 14 Jun 2011 19:39:17 +0200 Message-Id: <1308073157-22993-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-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: 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 (demeter2.kernel.org [140.211.167.43]); Tue, 14 Jun 2011 17:43:53 +0000 (UTC) This patch allows setting the input clock frequency of the SoC from the board specific using the davinci_set_refclk_rate function. Suggested-by: Kevin Hilman Cc: Sekhar Nori Signed-off-by: Christian Riesch --- This patch applies on top of Sekhar's patch. Best 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 = {