From patchwork Wed Aug 20 13:03:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 4751171 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 A0BD9C0338 for ; Wed, 20 Aug 2014 13:08:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 82AA62012F for ; Wed, 20 Aug 2014 13:08:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43602200ED for ; Wed, 20 Aug 2014 13:08:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751258AbaHTNI2 (ORCPT ); Wed, 20 Aug 2014 09:08:28 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:37324 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876AbaHTNI2 (ORCPT ); Wed, 20 Aug 2014 09:08:28 -0400 Received: by mail-pd0-f179.google.com with SMTP id v10so11894774pde.24 for ; Wed, 20 Aug 2014 06:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=z73TWvQ0SRO+sBnPICKvV66f/HOouq8XteBBsZX+tIM=; b=waFzA9sWXQrZrKz0TxILwSsSjLaor6m0R7NxbfwbOoHe6FWyCv6fLGkIrFAERHQx6G AZtZGcwAdVyD042OLwMAlyiFeR08Y7tHFysZ5rQAt/TFMHiJNyrkzKKnsayxCH2GOK08 OnWpL4fEJRfiX0VIDZ7ICBlqLkTL82H8CI+YCkGNRGgKn0V9OmKAeWckeGimsXdx/kEi 8jQ2tzVPHwdNzeIPxb3fsoxcKHHt8i1R7PInMtY8sLCIIKIBi5Pyn7mI3hJYfi3GFXxu jbidi3jGpTApI8jAIULK7fA1PHQgLdmH1h18AHh9c+HeLk41Vy0yLEfmNaV8ZmlZcdm2 RXiw== X-Received: by 10.70.100.137 with SMTP id ey9mr26110427pdb.21.1408539646164; Wed, 20 Aug 2014 06:00:46 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by mx.google.com with ESMTPSA id pl10sm34063107pdb.27.2014.08.20.06.00.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Aug 2014 06:00:45 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , horms@verge.net.au Date: Wed, 20 Aug 2014 22:03:03 +0900 Message-Id: <20140820130303.32075.55636.sendpatchset@w520> In-Reply-To: <20140820130201.32075.45257.sendpatchset@w520> References: <20140820130201.32075.45257.sendpatchset@w520> Subject: [PATCH 07/10] ARM: shmobile: r8a73a4: Use shmobile_init_delay() Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 From: Magnus Damm Adjust the r8a73a4 SoC support code to use shmobile_init_delay() together with CPU Frequency settings from the DTS. Get rid of the C code version and r8a73a4_init_early() that now are unused. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/r8a73a4.h | 1 - arch/arm/mach-shmobile/setup-r8a73a4.c | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/arch/arm/mach-shmobile/r8a73a4.h +++ work/arch/arm/mach-shmobile/r8a73a4.h 2014-08-20 19:38:27.000000000 +0900 @@ -14,6 +14,5 @@ void r8a73a4_add_standard_devices(void); void r8a73a4_add_dt_devices(void); void r8a73a4_clock_init(void); void r8a73a4_pinmux_init(void); -void r8a73a4_init_early(void); #endif /* __ASM_R8A73A4_H__ */ --- 0001/arch/arm/mach-shmobile/setup-r8a73a4.c +++ work/arch/arm/mach-shmobile/setup-r8a73a4.c 2014-08-20 19:38:35.000000000 +0900 @@ -295,13 +295,6 @@ void __init r8a73a4_add_standard_devices r8a73a4_register_dmac(); } -void __init r8a73a4_init_early(void) -{ -#ifndef CONFIG_ARM_ARCH_TIMER - shmobile_setup_delay(1500, 2, 4); /* Cortex-A15 @ 1500MHz */ -#endif -} - #ifdef CONFIG_USE_OF static const char *r8a73a4_boards_compat_dt[] __initdata = { @@ -310,7 +303,7 @@ static const char *r8a73a4_boards_compat }; DT_MACHINE_START(R8A73A4_DT, "Generic R8A73A4 (Flattened Device Tree)") - .init_early = r8a73a4_init_early, + .init_early = shmobile_init_delay, .init_late = shmobile_init_late, .dt_compat = r8a73a4_boards_compat_dt, MACHINE_END