From patchwork Thu Jun 23 02:01:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Turquette X-Patchwork-Id: 9194347 X-Patchwork-Delegate: mturquette@baylibre.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7A6636075C for ; Thu, 23 Jun 2016 02:11:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 686262841E for ; Thu, 23 Jun 2016 02:11:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CAE028426; Thu, 23 Jun 2016 02:11:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE9022841E for ; Thu, 23 Jun 2016 02:11:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751209AbcFWCLs (ORCPT ); Wed, 22 Jun 2016 22:11:48 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:32820 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbcFWCLs (ORCPT ); Wed, 22 Jun 2016 22:11:48 -0400 Received: by mail-pf0-f178.google.com with SMTP id i123so23317708pfg.0 for ; Wed, 22 Jun 2016 19:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KTt4YNXdACu5zgHZr3Glf3VtReoo+WU3U53ThcNsmtQ=; b=WwSspYJfnbwG7MT4pQ9+lG81CTCVhjH7wBRZdACmTDRGQ5nh5lWpqD/E8STygDO6+I tQpYZZdeU8W0FjZY27y0K9PmUqL49dCqwlguI2eHclmFn1lpvLZe44aSHfCIRWGfeuCp lbt8ODj8ZuhGNhL38FHlcHr/JXm3I4WYEGVE76cnPLdwxLU18+o6eUAcAkN5NEmjM3DA 2eB4NrW/30qyL1ySp0r4WzLowyMRIHnIw+zf3AM7P1bc5a6Pi9MvBrKNCUzvvjcj8iEx Q+4ajupL1gapGZegzxs2IJDDTRdC1nYAGnkE5xxG9v4N+Gt8Y5wmfd35/ytf7+wIiZJ3 5ILw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KTt4YNXdACu5zgHZr3Glf3VtReoo+WU3U53ThcNsmtQ=; b=Y/H3m0XCpL941zP9fWjX/KdcbphsrNyDtI0Y7+rxyQ6s/f0UjThPMulEMhPBMEFkMz q1FeP9VQ9lBYu3s6iuoysY3hMBLU01X/XKFpZBT4npkqul3Z8KA3E7n2gdor9+Wkpldb 7+4Kn9TwiTB3AtEFii+vFuN/bhNkWrQORfrP7xea7GPvlwbGAHUtGvrKmMMZtmid+YqV XIW112UHmvP6F6x4HdSbzps/any1Rg2/hpBJ04hBfHXrT44ANp+dBnHXa+li5YDYwFhc m5CztinQTi+QgnbTWc2GJql1LQh4j0UlbOlXpWZmpm9SciItt+3Zbv9hSrscVPWQcr7c suNg== X-Gm-Message-State: ALyK8tI1IiwdrW+o1JWb9FlRZUt/hjNmzH3ixOn6tEkhImn7ROhodXx5LZMAry0KhrwHtfZA X-Received: by 10.98.19.133 with SMTP id 5mr38946971pft.17.1466647907180; Wed, 22 Jun 2016 19:11:47 -0700 (PDT) Received: from localhost (cpe-172-248-200-249.socal.res.rr.com. [172.248.200.249]) by smtp.gmail.com with ESMTPSA id y66sm2540113pfg.94.2016.06.22.19.11.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jun 2016 19:11:46 -0700 (PDT) From: Michael Turquette To: linux-clk@vger.kernel.org Cc: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@endlessm.com, victor.wan@amlogic.com, jerry.cao@amlogic.com, xing.xu@amlogic.com Subject: [PATCH v2 1/6] clk: meson: only build selected platforms Date: Wed, 22 Jun 2016 19:01:15 -0700 Message-Id: <1466647280-17596-2-git-send-email-mturquette@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1466647280-17596-1-git-send-email-mturquette@baylibre.com> References: <1466647280-17596-1-git-send-email-mturquette@baylibre.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Break the AmLogic clock code up so that only the necessary parts are compiled and linked. The core code is selected by both arm and arm64 builds with COMMON_CLK_AMLOGIC. The individual drivers have their own config options as well. Tested-by: Kevin Hilman Signed-off-by: Michael Turquette --- No change in v2. drivers/clk/Kconfig | 1 + drivers/clk/Makefile | 2 +- drivers/clk/meson/Kconfig | 12 ++++++++++++ drivers/clk/meson/Makefile | 4 ++-- 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 drivers/clk/meson/Kconfig diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 53ddba26578c..30feb6b40305 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -208,6 +208,7 @@ config COMMON_CLK_OXNAS source "drivers/clk/bcm/Kconfig" source "drivers/clk/hisilicon/Kconfig" +source "drivers/clk/meson/Kconfig" source "drivers/clk/mvebu/Kconfig" source "drivers/clk/qcom/Kconfig" source "drivers/clk/renesas/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index dcc5e698ff6d..af03eb2f6c05 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -65,7 +65,7 @@ ifeq ($(CONFIG_COMMON_CLK), y) obj-$(CONFIG_ARCH_MMP) += mmp/ endif obj-y += mvebu/ -obj-$(CONFIG_ARCH_MESON) += meson/ +obj-$(CONFIG_COMMON_CLK_AMLOGIC) += meson/ obj-$(CONFIG_ARCH_MXS) += mxs/ obj-$(CONFIG_MACH_PISTACHIO) += pistachio/ obj-$(CONFIG_COMMON_CLK_NXP) += nxp/ diff --git a/drivers/clk/meson/Kconfig b/drivers/clk/meson/Kconfig new file mode 100644 index 000000000000..7bb19ad7369e --- /dev/null +++ b/drivers/clk/meson/Kconfig @@ -0,0 +1,12 @@ +config COMMON_CLK_AMLOGIC + bool + depends on OF + depends on ARCH_MESON || COMPILE_TEST + +config COMMON_CLK_MESON8B + bool + depends on COMMON_CLK_AMLOGIC + help + Support for the clock controller on AmLogic S805 devices, aka + meson8b. Say Y if you want peripherals and CPU frequency scaling to + work. diff --git a/drivers/clk/meson/Makefile b/drivers/clk/meson/Makefile index 901b5d435812..b3d60fecd846 100644 --- a/drivers/clk/meson/Makefile +++ b/drivers/clk/meson/Makefile @@ -2,5 +2,5 @@ # Makefile for Meson specific clk # -obj-y += clk-pll.o clk-cpu.o -obj-y += meson8b-clkc.o +obj-$(CONFIG_COMMON_CLK_AMLOGIC) += clk-pll.o clk-cpu.o +obj-$(CONFIG_COMMON_CLK_MESON8B) += meson8b-clkc.o