From patchwork Wed Nov 6 23:21:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3149861 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 961239F407 for ; Wed, 6 Nov 2013 23:21:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BA6E204E0 for ; Wed, 6 Nov 2013 23:21:57 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ADAA8204AB for ; Wed, 6 Nov 2013 23:21:56 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VeCPP-0006r2-GC; Wed, 06 Nov 2013 23:21:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VeCPH-0006XQ-1f; Wed, 06 Nov 2013 23:21:03 +0000 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VeCP9-0006Vh-Qu for linux-arm-kernel@lists.infradead.org; Wed, 06 Nov 2013 23:20:56 +0000 Received: by mail-pd0-f175.google.com with SMTP id g10so203228pdj.20 for ; Wed, 06 Nov 2013 15:20:33 -0800 (PST) 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=yKqutc8xdy99FVNDqI1xBqUoUamxThYws6uksEyU47I=; b=YgRmSECOz5knl5tiZ1FXUy5jIdxTxHXjdkSpS1n9XwvKnUiXlKPh++SQFoH0xn7MhP t0gXW9KKKj3RCU4IrqPmXHTBazcMPDGWlV763BczPDnwZ6QashTgIw8J/jp2elXP8BC8 3eLEXgnYT00VuPEju9cRyoEXlAU1TmKqgKiCKL+zG+SyU37N74IL77tTt7w/OLtr5wZy I2W+uj8zW7oDgJjL7qTuo+EHpr+Vaj1OApC/4wuWs6/IH+X2BY/eX2WhjMGrlJsijdSV fuql9DC1EO7YlkinnNf5Avscr7HQ501lfawatUbJfgQG4RGC+3w8Rx3EMAF2Eob3wTkG TuzA== X-Received: by 10.68.48.166 with SMTP id m6mr5629045pbn.105.1383780033751; Wed, 06 Nov 2013 15:20:33 -0800 (PST) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id wp8sm524892pbc.26.2013.11.06.15.20.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2013 15:20:32 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Thu, 07 Nov 2013 08:21:11 +0900 Message-Id: <20131106232111.8081.53457.sendpatchset@w520> In-Reply-To: <20131106232102.8081.20523.sendpatchset@w520> References: <20131106232102.8081.20523.sendpatchset@w520> Subject: [PATCH 01/04] ARM: shmobile: Add shared EMEV2 code for ->init_machine() X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131106_182055_977447_51F57D07 X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: horms@verge.net.au, Magnus Damm , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, 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 Add a SoC specific function that initializes clocks and starts DT probing in case of EMEV2. This EMEV2 SoC support code may be built for either legacy SHMOBILE or SMOBILE_MULTI. The change allows us to support existing board specific KZM9D DTB with these SoC specific DT_MACHINE_START() callbacks. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/setup-emev2.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- 0001/arch/arm/mach-shmobile/setup-emev2.c +++ work/arch/arm/mach-shmobile/setup-emev2.c 2013-11-05 15:21:42.000000000 +0900 @@ -16,6 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include @@ -197,6 +198,16 @@ void __init emev2_init_delay(void) #ifdef CONFIG_USE_OF +static void __init emev2_add_standard_devices_dt(void) +{ +#ifdef CONFIG_COMMON_CLK + of_clk_init(NULL); +#else + emev2_clock_init(); +#endif + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); +} + static const char *emev2_boards_compat_dt[] __initdata = { "renesas,emev2", NULL, @@ -206,6 +217,7 @@ DT_MACHINE_START(EMEV2_DT, "Generic Emma .smp = smp_ops(emev2_smp_ops), .map_io = emev2_map_io, .init_early = emev2_init_delay, + .init_machine = emev2_add_standard_devices_dt, .dt_compat = emev2_boards_compat_dt, MACHINE_END