From patchwork Fri Nov 20 00:12:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 7662571 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 125A89F392 for ; Fri, 20 Nov 2015 00:14:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2B8BE205B1 for ; Fri, 20 Nov 2015 00:14:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3256B203B6 for ; Fri, 20 Nov 2015 00:14:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161561AbbKTAOP (ORCPT ); Thu, 19 Nov 2015 19:14:15 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:26452 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161551AbbKTAOJ (ORCPT ); Thu, 19 Nov 2015 19:14:09 -0500 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NY300HYJ7BIS1A0@mailout3.w1.samsung.com>; Fri, 20 Nov 2015 00:14:06 +0000 (GMT) X-AuditID: cbfec7f5-f79b16d000005389-64-564e65cda449 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 8E.4D.21385.DC56E465; Fri, 20 Nov 2015 00:14:06 +0000 (GMT) Received: from localhost.localdomain ([10.252.80.64]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NY3009UF7B47750@eusync1.samsung.com>; Fri, 20 Nov 2015 00:14:05 +0000 (GMT) From: Krzysztof Kozlowski To: Sylwester Nawrocki , Tomasz Figa , Michael Turquette , Stephen Boyd , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Kukjin Kim , Olof Johansson , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Kevin Hilman , devicetree@vger.kernel.org, Alim Akhtar Cc: Pankaj Dubey , Krzysztof Kozlowski Subject: [PATCH v2 1/2] clk: samsung: Don't build ARMv8 clock drivers on ARMv7 Date: Fri, 20 Nov 2015 09:12:40 +0900 Message-id: <1447978361-18010-2-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1447978361-18010-1-git-send-email-k.kozlowski@samsung.com> References: <1447978361-18010-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsVy+t/xy7rnUv3CDJZaWzyYt43N4u+kY+wW 75f1MFrMP3KO1eL1C0OL/sevmS2+Hl7BaLHp8TVWi48991gtLu+aw2Yx4/w+JouLp1wtTl3/ zGaxaOsXdovDb9pZLX6c6WaxWLXrD6PFy48nWByEPNbMW8Po8fvXJEaP9zda2T0u9/Uyeeyc dZfdY9OqTjaPO9f2sHlsXlLvceVEE6tH35ZVjB6fN8kFcEdx2aSk5mSWpRbp2yVwZZydNpm5 YJlIxfyrp9gaGHcKdjFyckgImEjsvdDHCmGLSVy4t56ti5GLQ0hgKaPE92ePmEESQgL/GSXu 9WmD2GwCxhKbly8BKxIROMsi0XR+PmMXIwcHs0CMxI0TeSA1wgJ+Eve/tTCC2CwCqhLHFz5l A7F5BdwlXvz6zwixTE7i5LHJYIs5BTwkljxczQqxy11i6eE1LBMYeRcwMqxiFE0tTS4oTkrP NdIrTswtLs1L10vOz93ECAn7rzsYlx6zOsQowMGoxMPbIO4XJsSaWFZcmXuIUYKDWUmEd6kf UIg3JbGyKrUoP76oNCe1+BCjNAeLkjjvzF3vQ4QE0hNLUrNTUwtSi2CyTBycUg2MmTNmloi4 OR+x6pmfeHNF8LN/6p+T5AWOZm5d80BfdrbdoX+z/uX2OnmveqzS0XbxR0iXYNjq+DsNYTti 4uwuzA6qV9z/2TK4szKn/RYn2zZOpi2/S40+p8h8/NjHuWfnwYc3QvwkPcxCrednLRCep64v WBzxtuCRUrLKjIlrjy9YYOz699sxJZbijERDLeai4kQAb7MK7ncCAAA= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Currently the Exynos5433 (ARMv8 SoC) clock driver depends on ARCH_EXYNOS so it is built also on ARMv7. This does not bring any kind of benefit. There won't be a single kernel image for ARMv7 and ARMv8 SoCs (like multi_v7 for ARMv7). Instead build clock drivers only for respective SoC's architecture. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi Acked-by: Sylwester Nawrocki Tested-by: Alim Akhtar Acked-by: Tomasz Figa --- Changes since v1: 1. Use one Kconfig symbol for clocks of all ARM64 SoCs (after discussion): EXYNOS_ARM64_COMMON_CLK. 2. Minor cleanups after Tomasz's comments. 3. Added tags: Chanwoo's, Sylwester's, Alim's and Tomasz's (the tags were given for v1 but assuming that change from 1. is not major enough to require re-tagging). --- drivers/clk/samsung/Kconfig | 6 ++++++ drivers/clk/samsung/Makefile | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/clk/samsung/Kconfig b/drivers/clk/samsung/Kconfig index 84196ecdaa12..3a2c032965e6 100644 --- a/drivers/clk/samsung/Kconfig +++ b/drivers/clk/samsung/Kconfig @@ -2,6 +2,7 @@ config COMMON_CLK_SAMSUNG bool select COMMON_CLK +# ARM SoCs: config S3C2410_COMMON_CLK bool select COMMON_CLK_SAMSUNG @@ -24,3 +25,8 @@ config S3C2443_COMMON_CLK bool select COMMON_CLK_SAMSUNG +# ARM64 SoCs (e.g. Exynos5433, Exynos7): +config EXYNOS_ARM64_COMMON_CLK + def_bool ARCH_EXYNOS + depends on ARM64 || COMPILE_TEST + select COMMON_CLK_SAMSUNG diff --git a/drivers/clk/samsung/Makefile b/drivers/clk/samsung/Makefile index 5f6833ea355d..fc367d4b2902 100644 --- a/drivers/clk/samsung/Makefile +++ b/drivers/clk/samsung/Makefile @@ -10,11 +10,11 @@ obj-$(CONFIG_SOC_EXYNOS5250) += clk-exynos5250.o obj-$(CONFIG_SOC_EXYNOS5260) += clk-exynos5260.o obj-$(CONFIG_SOC_EXYNOS5410) += clk-exynos5410.o obj-$(CONFIG_SOC_EXYNOS5420) += clk-exynos5420.o -obj-$(CONFIG_ARCH_EXYNOS) += clk-exynos5433.o +obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK) += clk-exynos5433.o obj-$(CONFIG_SOC_EXYNOS5440) += clk-exynos5440.o obj-$(CONFIG_ARCH_EXYNOS) += clk-exynos-audss.o obj-$(CONFIG_ARCH_EXYNOS) += clk-exynos-clkout.o -obj-$(CONFIG_ARCH_EXYNOS7) += clk-exynos7.o +obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK) += clk-exynos7.o obj-$(CONFIG_S3C2410_COMMON_CLK)+= clk-s3c2410.o obj-$(CONFIG_S3C2410_COMMON_DCLK)+= clk-s3c2410-dclk.o obj-$(CONFIG_S3C2412_COMMON_CLK)+= clk-s3c2412.o