From patchwork Tue May 1 22:50:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Stach X-Patchwork-Id: 156335 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 410DDB6F9D for ; Wed, 2 May 2012 14:40:35 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7AC91280D7; Wed, 2 May 2012 06:40:26 +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 JPhuXAf97-WX; Wed, 2 May 2012 06:40:26 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CA751280D8; Wed, 2 May 2012 06:40:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 80BB32813D for ; Wed, 2 May 2012 00:55:40 +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 vWkiXB64aYWH for ; Wed, 2 May 2012 00:55:40 +0200 (CEST) X-Greylist: delayed 330 seconds by postgrey-1.27 at theia; Wed, 02 May 2012 00:55:39 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 km20343-01.keymachine.de (ns.km20343-01.keymachine.de [84.19.182.79]) by theia.denx.de (Postfix) with ESMTPS id 180CE2813B for ; Wed, 2 May 2012 00:55:39 +0200 (CEST) Received: from localhost.localdomain (f053084045.adsl.alicedsl.de [78.53.84.45]) by km20343-01.keymachine.de (Postfix) with ESMTPA id DEE667D4162 for ; Wed, 2 May 2012 00:50:08 +0200 (CEST) From: Lucas Stach To: u-boot@lists.denx.de Date: Wed, 2 May 2012 00:50:05 +0200 Message-Id: <1335912605-11496-1-git-send-email-dev@lynxeye.de> X-Mailer: git-send-email 1.7.10 X-Mailman-Approved-At: Wed, 02 May 2012 06:40:15 +0200 Subject: [U-Boot] [PATCH] tegra2: trivially enable 13 mhz crystal frequency 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 This is needed for upcoming Toradex Colibri T20 upstream support. Signed-off-by: Lucas Stach --- arch/arm/cpu/armv7/tegra2/clock.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/tegra2/clock.c b/arch/arm/cpu/armv7/tegra2/clock.c index 39376ab..8084631 100644 --- a/arch/arm/cpu/armv7/tegra2/clock.c +++ b/arch/arm/cpu/armv7/tegra2/clock.c @@ -1027,7 +1027,10 @@ void clock_early_init(void) clock_set_rate(CLOCK_ID_CGENERAL, 600, 26, 0, 8); break; - case CLOCK_OSC_FREQ_13_0: + case CLOCK_OSC_FREQ_13_0: /* OSC is 13Mhz */ + clock_set_rate(CLOCK_ID_PERIPH, 432, 13, 1, 8); + clock_set_rate(CLOCK_ID_CGENERAL, 600, 13, 0, 8); + break; case CLOCK_OSC_FREQ_19_2: default: /*