From patchwork Fri Nov 12 18:05:52 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darius Augulis X-Patchwork-Id: 71002 X-Patchwork-Delegate: promsoft@gmail.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 D4316B712E for ; Sat, 13 Nov 2010 05:06:12 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 436142825E; Fri, 12 Nov 2010 19:06:11 +0100 (CET) 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 5HhZ2GlANzGQ; Fri, 12 Nov 2010 19:06:11 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 013A82825F; Fri, 12 Nov 2010 19:06:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1C9C92825F for ; Fri, 12 Nov 2010 19:06:04 +0100 (CET) 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 jX8RyRhlntT4 for ; Fri, 12 Nov 2010 19:06:02 +0100 (CET) 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-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by theia.denx.de (Postfix) with ESMTP id 11B3D2825E for ; Fri, 12 Nov 2010 19:06:00 +0100 (CET) Received: by eyd10 with SMTP id 10so2027751eyd.3 for ; Fri, 12 Nov 2010 10:06:00 -0800 (PST) Received: by 10.14.124.201 with SMTP id x49mr1902154eeh.7.1289585160220; Fri, 12 Nov 2010 10:06:00 -0800 (PST) Received: from localhost6.localdomain6 (85-255-53-195.ip.kis.lt [85.255.53.195]) by mx.google.com with ESMTPS id q58sm3449758eeh.9.2010.11.12.10.05.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Nov 2010 10:05:56 -0800 (PST) To: u-boot@lists.denx.de From: Darius Augulis Date: Fri, 12 Nov 2010 20:05:52 +0200 Message-ID: <20101112180521.2755.28346.stgit@localhost6.localdomain6> User-Agent: StGit/0.15 MIME-Version: 1.0 Subject: [U-Boot] [PATCH] ARM: S3C64XX: fix clock setup X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Fix pll divider values to standard ones described in "S3C6410X RISC Microprocessor User's Manual, Revision 1.20", p. 3-21. Signed-off-by: Darius Augulis --- arch/arm/include/asm/arch-s3c64xx/s3c6400.h | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/arch/arm/include/asm/arch-s3c64xx/s3c6400.h b/arch/arm/include/asm/arch-s3c64xx/s3c6400.h index 10b3324..a197b4e 100644 --- a/arch/arm/include/asm/arch-s3c64xx/s3c6400.h +++ b/arch/arm/include/asm/arch-s3c64xx/s3c6400.h @@ -762,24 +762,19 @@ #define TIMER3_ON (TCON_3_ONOFF * 1) #define TIMER3_OFF (FClrBit(TCON, TCON_3_ONOFF)) -#if defined(CONFIG_CLK_400_100_50) +#if defined(CONFIG_CLK_400_133_66) #define STARTUP_AMDIV 400 #define STARTUP_MDIV 400 -#define STARTUP_PDIV 6 -#define STARTUP_SDIV 1 -#elif defined(CONFIG_CLK_400_133_66) -#define STARTUP_AMDIV 400 -#define STARTUP_MDIV 533 -#define STARTUP_PDIV 6 -#define STARTUP_SDIV 1 +#define STARTUP_PDIV 3 +#define STARTUP_SDIV 2 #elif defined(CONFIG_CLK_533_133_66) #define STARTUP_AMDIV 533 -#define STARTUP_MDIV 533 -#define STARTUP_PDIV 6 +#define STARTUP_MDIV 266 +#define STARTUP_PDIV 3 #define STARTUP_SDIV 1 #elif defined(CONFIG_CLK_667_133_66) #define STARTUP_AMDIV 667 -#define STARTUP_MDIV 533 +#define STARTUP_MDIV 333 #define STARTUP_PDIV 6 #define STARTUP_SDIV 1 #endif