From patchwork Thu Sep 4 14:02:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 4846101 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B7130C0338 for ; Thu, 4 Sep 2014 14:03:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 67F332027D for ; Thu, 4 Sep 2014 14:03:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AFE7B20225 for ; Thu, 4 Sep 2014 14:03:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752656AbaIDOCm (ORCPT ); Thu, 4 Sep 2014 10:02:42 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:52396 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751140AbaIDOCl (ORCPT ); Thu, 4 Sep 2014 10:02:41 -0400 Received: by mail-la0-f41.google.com with SMTP id s18so1107700lam.0 for ; Thu, 04 Sep 2014 07:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=2OnxCRFBW4tbDdiBeswKc6Jga2Jzh+Do3tJ/ab5FIdo=; b=iquASkFkmiGDWYijvg1RQKTqxSUx/0qHgAwkrCO3HOguTQnF8cC0S6vvsPxQLCWGG3 oSLA3R4K8weAn6YOe1ToaPUN9ozrzwKeN6Swc9SKC9bJ36nY/Sr4jGEikBzrulhcnL+F QfjAcsJVxZfip5Q4tawId4kgMl+RktcPtavaeo9fp08MvlkqGNWl8OncgjzU95Sukujj pnNCTiWMerUYrq7hZRZV55PdawiRCcjOOqbs2sqBqDokDH+Fskqg+grenRH+9kWGHUwv LBIQDfszOSj/vkxIHCI4TeQgBbmgjDwD7eMcxT/6tr5nfdDjJ+5zj8Y5in8cFCgzBNGJ BYEA== X-Received: by 10.152.7.145 with SMTP id j17mr4671335laa.77.1409839360275; Thu, 04 Sep 2014 07:02:40 -0700 (PDT) Received: from groucho.site ([91.108.183.74]) by mx.google.com with ESMTPSA id wv3sm2078838lac.35.2014.09.04.07.02.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Sep 2014 07:02:39 -0700 (PDT) From: Ulrich Hecht To: horms@verge.net.au Cc: linux-sh@vger.kernel.org, magnus.damm@gmail.com, Ulrich Hecht Subject: [PATCH v3 1/4] ARM: shmobile: support Cortex-A7 in shmobile_init_delay() Date: Thu, 4 Sep 2014 16:02:27 +0200 Message-Id: <1409839350-1245-2-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1409839350-1245-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1409839350-1245-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SBL, RP_MATCHES_RCVD, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ulrich Hecht --- arch/arm/mach-shmobile/timer.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-shmobile/timer.c b/arch/arm/mach-shmobile/timer.c index adce98b..87c6be1 100644 --- a/arch/arm/mach-shmobile/timer.c +++ b/arch/arm/mach-shmobile/timer.c @@ -43,7 +43,7 @@ static void __init shmobile_setup_delay_hz(unsigned int max_cpu_core_hz, void __init shmobile_init_delay(void) { struct device_node *np, *cpus; - bool is_a8_a9 = false; + bool is_a7_a8_a9 = false; bool is_a15 = false; u32 max_freq = 0; @@ -57,9 +57,10 @@ void __init shmobile_init_delay(void) if (!of_property_read_u32(np, "clock-frequency", &freq)) max_freq = max(max_freq, freq); - if (of_device_is_compatible(np, "arm,cortex-a8") || + if (of_device_is_compatible(np, "arm,cortex-a7") || + of_device_is_compatible(np, "arm,cortex-a8") || of_device_is_compatible(np, "arm,cortex-a9")) - is_a8_a9 = true; + is_a7_a8_a9 = true; else if (of_device_is_compatible(np, "arm,cortex-a15")) is_a15 = true; } @@ -69,7 +70,7 @@ void __init shmobile_init_delay(void) if (!max_freq) return; - if (is_a8_a9) + if (is_a7_a8_a9) shmobile_setup_delay_hz(max_freq, 1, 3); else if (is_a15 && !IS_ENABLED(CONFIG_ARM_ARCH_TIMER)) shmobile_setup_delay_hz(max_freq, 2, 4);