From patchwork Fri Jan 18 05:02:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hideki EIRAKU X-Patchwork-Id: 1999141 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 764ABDF280 for ; Fri, 18 Jan 2013 05:06:05 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tw46d-00086Y-Gz; Fri, 18 Jan 2013 05:03:07 +0000 Received: from mail-da0-f51.google.com ([209.85.210.51]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tw46Z-00085P-2z for linux-arm-kernel@lists.infradead.org; Fri, 18 Jan 2013 05:03:04 +0000 Received: by mail-da0-f51.google.com with SMTP id i30so1443668dad.24 for ; Thu, 17 Jan 2013 21:03:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=cgDv+doONCl1ohJtztneT7MZJRDVP1YQVXdvc6aA9Xg=; b=OAKeUc3HFFEUIWkBwQqIyUL+biEno9RI0mXTHz/RQNUZzczmp7RDjUkyy/GUihpSM7 VdzEuHLZ5BY/Jpp+Qs4S0ffZ8l6nXd10Z9Wmz8D6XJv+lLfrtBXAUlgU45lDQD9kFGLy HS4TLGvwzR1mq7lBQK2JiBdWEuXOnDwRqECJvotfKvuzNbMhyMbho9vOTTlBm3dgj78D w0RH7hEEZkAZoh4JOuGkTJT3An4JGmzZDw8yuP9YdWwCgWzHbN0kaPfKqEoc+LbAg/HD PCuDBIKbb4iiT0UKx8tnYOmOJif2O0iOjncK7Yr7Q3iPTwIWpvgY06YptSE1VsJZP5wI 7MgQ== X-Received: by 10.68.241.232 with SMTP id wl8mr1475462pbc.144.1358485380142; Thu, 17 Jan 2013 21:03:00 -0800 (PST) Received: from tyrell.hq.igel.co.jp ([219.106.231.132]) by mx.google.com with ESMTPS id bv10sm2672304pab.14.2013.01.17.21.02.57 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 17 Jan 2013 21:02:59 -0800 (PST) From: Hideki EIRAKU To: Simon Horman , Magnus Damm , Russell King Subject: [PATCH] ARM: shmobile: armadillo800eva: set clock rates before timer init Date: Fri, 18 Jan 2013 14:02:05 +0900 Message-Id: <1358485325-19673-1-git-send-email-hdk@igel.co.jp> X-Mailer: git-send-email 1.8.0 X-Gm-Message-State: ALoCoQk2R9UFlpgxuyK6nNDc88vKGNB4xMspKkufOj4kAiO3tQwMadNMYqpR/IMoZIZKcAGTi1IT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130118_000303_487065_EEFD7F65 X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.210.51 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Katsuya MATSUBARA , Hideki EIRAKU , Kuninori Morimoto , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Damian Hobson-Garcia , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Previously clock rates were set after initialization of timer. Therefore the timer used the default extal1 clock rate (25MHz) instead of the correct rate for this board (24MHz). Signed-off-by: Hideki EIRAKU Acked-by: Kuninori Morimoto --- arch/arm/mach-shmobile/board-armadillo800eva.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index 5353adf..1e79cfb 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c @@ -1175,8 +1175,6 @@ static void __init eva_init(void) platform_add_devices(eva_devices, ARRAY_SIZE(eva_devices)); - eva_clock_init(); - rmobile_add_device_to_domain("A4LC", &lcdc0_device); rmobile_add_device_to_domain("A4LC", &hdmi_lcdc_device); if (usb) @@ -1187,6 +1185,9 @@ static void __init eva_earlytimer_init(void) { r8a7740_clock_init(MD_CK0 | MD_CK2); shmobile_earlytimer_init(); + + /* the rate of extal1 clock must be set before late_time_init */ + eva_clock_init(); } static void __init eva_add_early_devices(void)