From patchwork Fri Jun 10 00:27:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Turquette X-Patchwork-Id: 9168643 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 6A5B0604DB for ; Fri, 10 Jun 2016 00:28:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D6FB27248 for ; Fri, 10 Jun 2016 00:28:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5283828364; Fri, 10 Jun 2016 00:28:05 +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 EB9F127248 for ; Fri, 10 Jun 2016 00:28:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751382AbcFJA2E (ORCPT ); Thu, 9 Jun 2016 20:28:04 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:35077 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751359AbcFJA2E (ORCPT ); Thu, 9 Jun 2016 20:28:04 -0400 Received: by mail-pf0-f178.google.com with SMTP id c2so17778177pfa.2 for ; Thu, 09 Jun 2016 17:28:03 -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=wsBMJpUudoJ9lHuuTflMW4XgpDtxamKpPxyIFoSLzJM=; b=EMzQmCsg8x4RwL2vsDlvGhgLmirr4Tb86MwQrL/0x5OON+mfUEkiqjJrV+sntS2usF WQnKO5fFIBFEmhzyZR9l2uY/Qm+UXBtkdc1EMIJcQsHcdQmNDlelCFdExX8ILTLT0Ncf NZ18+KQVqmjltaLYDZXVFhsqqJUM5r0OQar6wJECLmtgJgUXLwWfmCcUhQFAsWPcJ4XT b+jyc3hCRCgwJUItvyjrMmq72QgDHCEbQmRv2/EECaZ0kxh2+gsNgukwM5Eej9on2TKo +t2SPmGQcmaJLUc88YgW8b1Ak5Qqc09nRnn7mvg/l7DmRmK05COpuSat/Axjhxu9BOHJ mgLQ== 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=wsBMJpUudoJ9lHuuTflMW4XgpDtxamKpPxyIFoSLzJM=; b=XEgjLfqyT3w8YBmN9j5MOfDmI0oe8Qjr869NToCq/ChBI0RzxajFfxdHSfSaqj1F8Z +Ln41kheKPJqVRXvAccOkhgh8heZIt0Xf209IL7I6dxZ9cSYdh81AcaQ0ccY4sKcx32/ PmiJVgZPlq2tWqGGCwxqceJgMeo6HNW61J5yMJzzhtYfwY57YHwJe+g35HpUZQiQxzpm eBE5wi0DHIVOaSFcyhQNekeq8zuhIncyga55sXj9582HwnjhQ4imh5OauwbMAQ1FZEIP dd2busnd/QPngpCjxUXDiIfeRQwTN3BTwarf8e4dHtAUravwpNJvvUKugfmFpro1VHnm 3yrg== X-Gm-Message-State: ALyK8tImpyg5/GbNWE04L3lqTsZQuD4EQDe2UbU7QmzF0jm8aRf5+MGT5VbwSf+nPCrRIGwV X-Received: by 10.98.93.145 with SMTP id n17mr7527789pfj.66.1465518483080; Thu, 09 Jun 2016 17:28:03 -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 qz5sm12798103pab.1.2016.06.09.17.28.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jun 2016 17:28:02 -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 10/10] clk: meson: only build selected platforms Date: Thu, 9 Jun 2016 17:27:47 -0700 Message-Id: <1465518467-23939-11-git-send-email-mturquette@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1465518467-23939-1-git-send-email-mturquette@baylibre.com> References: <1465518467-23939-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. Signed-off-by: Michael Turquette --- 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 53ddba2..30feb6b 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 dcc5e69..af03eb2 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 0000000..7bb19ad --- /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 901b5d4..b3d60fe 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