From patchwork Tue Jul 9 05:43:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2825084 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 8E51E9F756 for ; Tue, 9 Jul 2013 05:44:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 99BB52010B for ; Tue, 9 Jul 2013 05:44:46 +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 91642200D9 for ; Tue, 9 Jul 2013 05:44:45 +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 1UwQih-0003SO-9p; Tue, 09 Jul 2013 05:44:12 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UwQiX-0006h7-JE; Tue, 09 Jul 2013 05:44:01 +0000 Received: from mail-pd0-x232.google.com ([2607:f8b0:400e:c02::232]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UwQiT-0006fE-RA for linux-arm-kernel@lists.infradead.org; Tue, 09 Jul 2013 05:43:58 +0000 Received: by mail-pd0-f178.google.com with SMTP id w11so4877245pde.37 for ; Mon, 08 Jul 2013 22:43:36 -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=h6kOMXXd0tQJBaZPblACoN5tW+scWLqf/ZsStLNHfnk=; b=yhYrqCFzIN9TLy15byPY4FOac06g2jAgcX4Wro4rFebvm4o+Lj95f9HJYDoNvFFnlF Jfj3/QH9/4vNaY/JOKlhrNjqynnxpdRjQwA/DZ5Sre3j7uJQC8Q+o6l5F2jSkmBek0OS VId+VdTObzcUxXCsRbEaptwzqjj89rYd9P/PJ3PkAiYIaZKYOezzumNbcCmOCUJ2Xg5e kLSRaQItW/3RRgp9foiilPvYBoCITYLXF5daHxwud1B33Bppodepct5Hx6gaCxNZj6E/ 4bXZLuBj9RWCV+zU1l2Ow3M/RnS58FiFWkr4OBJ1Iw/ttJ+cuJ1AER6r0fLjXojtmF+i eg9Q== X-Received: by 10.68.235.9 with SMTP id ui9mr15440688pbc.85.1373348616375; Mon, 08 Jul 2013 22:43:36 -0700 (PDT) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id cx3sm26159875pbb.30.2013.07.08.22.43.33 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Jul 2013 22:43:35 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Tue, 09 Jul 2013 14:43:41 +0900 Message-Id: <20130709054341.14007.99736.sendpatchset@w520> In-Reply-To: <20130709054331.14007.66068.sendpatchset@w520> References: <20130709054331.14007.66068.sendpatchset@w520> Subject: [PATCH 01/04] ARM: shmobile: Only build clocks when COMMON_CLK=n X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130709_014358_008327_5B0C8A26 X-CRM114-Status: UNSURE ( 8.26 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: arnd@arndb.de, Magnus Damm , horms@verge.net.au, laurent.pinchart@ideasonboard.com, olof@lixom.net, shinya.kuribayashi.px@renesas.com, 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.4 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=unavailable 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 Move shared clock.c file and per-SoC clock-xxx.c files to only build when CONFIG_COMMON_CLK != y. The regular ARCH_SHMOBILE case with legacy SH clock framework will build just as before with this patch applied, however the case when COMMON_CLK=y will exclude all the clock files. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/Makefile | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) --- 0002/arch/arm/mach-shmobile/Makefile +++ work/arch/arm/mach-shmobile/Makefile 2013-07-09 12:21:29.000000000 +0900 @@ -3,17 +3,28 @@ # # Common objects -obj-y := timer.o console.o clock.o +obj-y := timer.o console.o # CPU objects -obj-$(CONFIG_ARCH_SH7372) += setup-sh7372.o clock-sh7372.o intc-sh7372.o -obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o clock-sh73a0.o intc-sh73a0.o -obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o clock-r8a73a4.o -obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o clock-r8a7740.o intc-r8a7740.o -obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o clock-r8a7778.o -obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o clock-r8a7779.o intc-r8a7779.o -obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o clock-r8a7790.o -obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o clock-emev2.o +obj-$(CONFIG_ARCH_SH7372) += setup-sh7372.o intc-sh7372.o +obj-$(CONFIG_ARCH_SH73A0) += setup-sh73a0.o intc-sh73a0.o +obj-$(CONFIG_ARCH_R8A73A4) += setup-r8a73a4.o +obj-$(CONFIG_ARCH_R8A7740) += setup-r8a7740.o intc-r8a7740.o +obj-$(CONFIG_ARCH_R8A7778) += setup-r8a7778.o +obj-$(CONFIG_ARCH_R8A7779) += setup-r8a7779.o intc-r8a7779.o +obj-$(CONFIG_ARCH_R8A7790) += setup-r8a7790.o +obj-$(CONFIG_ARCH_EMEV2) += setup-emev2.o + +# Clock objects +clk-y := clock.o +clk-$(CONFIG_ARCH_SH7372) += clock-sh7372.o +clk-$(CONFIG_ARCH_SH73A0) += clock-sh73a0.o +clk-$(CONFIG_ARCH_R8A73A4) += clock-r8a73a4.o +clk-$(CONFIG_ARCH_R8A7740) += clock-r8a7740.o +clk-$(CONFIG_ARCH_R8A7778) += clock-r8a7778.o +clk-$(CONFIG_ARCH_R8A7779) += clock-r8a7779.o +clk-$(CONFIG_ARCH_R8A7790) += clock-r8a7790.o +clk-$(CONFIG_ARCH_EMEV2) += clock-emev2.o # SMP objects smp-y := platsmp.o headsmp.o @@ -53,3 +64,4 @@ obj-$(CONFIG_MACH_KZM9G_REFERENCE) += bo # Framework support obj-$(CONFIG_SMP) += $(smp-y) +obj-y += $(clk-y$(CONFIG_COMMON_CLK))