From patchwork Wed Feb 18 02:38:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 5842531 X-Patchwork-Delegate: horms@verge.net.au 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 523A4BF440 for ; Wed, 18 Feb 2015 02:38:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E6DE720154 for ; Wed, 18 Feb 2015 02:38:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F219920149 for ; Wed, 18 Feb 2015 02:38:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751628AbbBRCiO (ORCPT ); Tue, 17 Feb 2015 21:38:14 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:34747 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751595AbbBRCiO (ORCPT ); Tue, 17 Feb 2015 21:38:14 -0500 Received: by pabrd3 with SMTP id rd3so10988507pab.1 for ; Tue, 17 Feb 2015 18:38:13 -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=oqeY50s/V/sjHpRACGsGtcImjvQ4mDzpTnEMKH73aio=; b=dgy+uZyY4zJK9MiHH9WjQsVuNJya3gDh7sQ24sX6mXPo2wKenAmuYb4kiOMKQ/B07U aElLM8loJl6K4iVfNwfOtB5nL1ZMgcRsJne3SFOk72MnVkK2apwNXNHzYrBj/hjqLsum uVdbksTBs4fK9OisbXXNmkF+D74Kh2bWddJZfstGAd/yTbd8H5LsfiQxWH/5V8W5ELpq PC3R5SHCoUOD5Kqk9tJP04sOI4+6xB2+jLfwVjcT7/MZohAQCkxfZwDTx4Cor1DRoaXq QekU0KrwYc1T2A2h+an5pAaBsQUzuKOShMZs9yY0VkHKKKbMI8qjbpHyfQQvEos9NQzi QbCA== X-Received: by 10.70.93.70 with SMTP id cs6mr54231004pdb.36.1424227093895; Tue, 17 Feb 2015 18:38:13 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by mx.google.com with ESMTPSA id jd10sm18917183pbd.23.2015.02.17.18.38.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Feb 2015 18:38:12 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , horms@verge.net.au, laurent.pinchart+renesas@ideasonboard.com, geert+renesas@glider.be Date: Wed, 18 Feb 2015 11:38:32 +0900 Message-Id: <20150218023832.12588.50957.sendpatchset@little-apple> In-Reply-To: <20150218023812.12588.9023.sendpatchset@little-apple> References: <20150218023812.12588.9023.sendpatchset@little-apple> Subject: [PATCH 02/05] ARM: shmobile: r8a7779: Generic SoC CCF and timer support Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 r8a7779-specific callback to initialize CCF and clocksources. With this in place we are one step closer to be able to use r8a7779 without C board code. Signed-off-by: Magnus Damm Acked-by: Geert Uytterhoeven --- arch/arm/mach-shmobile/setup-r8a7779.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- 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/setup-r8a7779.c +++ work/arch/arm/mach-shmobile/setup-r8a7779.c 2015-02-18 10:26:28.235786255 +0900 @@ -14,6 +14,8 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ +#include +#include #include #include #include @@ -761,6 +763,12 @@ u32 __init r8a7779_read_mode_pins(void) return mode; } +static void __init r8a7779_init_time(void) +{ + r8a7779_clocks_init(r8a7779_read_mode_pins()); + clocksource_of_init(); +} + static const char *r8a7779_compat_dt[] __initdata = { "renesas,r8a7779", NULL, @@ -769,6 +777,7 @@ static const char *r8a7779_compat_dt[] _ DT_MACHINE_START(R8A7779_DT, "Generic R8A7779 (Flattened Device Tree)") .map_io = r8a7779_map_io, .init_early = shmobile_init_delay, + .init_time = r8a7779_init_time, .init_irq = r8a7779_init_irq_dt, .init_late = shmobile_init_late, .dt_compat = r8a7779_compat_dt,