From patchwork Wed Mar 16 16:04:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vishnupatekar X-Patchwork-Id: 8602321 Return-Path: X-Original-To: patchwork-linux-arm@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 7B273C0553 for ; Wed, 16 Mar 2016 16:18:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 90B32201DD for ; Wed, 16 Mar 2016 16:18:45 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 80780201D3 for ; Wed, 16 Mar 2016 16:18:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1agE0b-0006tD-7Z; Wed, 16 Mar 2016 16:09:17 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1agDyh-0005hz-RZ for linux-arm-kernel@lists.infradead.org; Wed, 16 Mar 2016 16:07:21 +0000 Received: by mail-pf0-x244.google.com with SMTP id q129so7261622pfb.3 for ; Wed, 16 Mar 2016 09:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rjSNiFbMlphuiEUMUxc07Z1dTsfKaPH/jHG1WSaRXGo=; b=xbmheCsr31h1ITRskqrvVcoqSYx5UhMj0DCwgknsOB9JrPSYTfJd7Ij+3/d8O4kfce lv/VYy+l/MB28q+NKdLtKkjUTt1fAZNqfGCd08ihLOKEJYUdnhlvbbf921qyU6ilYlUd IIpqVHd/mMTz4JiuQ4H4A3TS/mSzP38yHdJf2nsb0vCBIBkoramPp2Bg3+CnE7FUbpTn 6qs896jpO0SaY+GWFlHHMYzup0Mzjw87JbnjAbzk7oK32GgBrRwrJwoLaSNgyRE8bt22 F/mqQ73El4rXamXdlTzzfgZPY9LLw60E4Y2WpVPcRn0mAle7I34kernUKZwMxkfQM0q5 MNYA== 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=rjSNiFbMlphuiEUMUxc07Z1dTsfKaPH/jHG1WSaRXGo=; b=PMLW1JU4ov0RMcYawQ7M3xTOBm1Ws/N/cbEFweom0lHMDK4QmDKsPiTTV13LCYDw+k xLCUhtGgTa9SOvIHAzUz5saJ+wVQqMkC4Y/iCH/jwvvI8JuOWwXqyLL3tA6YwBLFbzFr lcvETAzR6T0Q7vD2EoRYxf7tcdBbTJfKklfAj00J2vuJRREOJm+YkiyZFZJ/LhWslkBt jQHe+cjstE7cvQeArpMH3UQ9m4KuXkHpQE0TXTNesw63Tyf357N/H6l8C369u5k6b4it +TCNlgCPGcGIkAGMuD85cF8w9SnaL2sQbOHe+qbOG5TLqhH8zRsfz6QbZk5n+VtaMAQK fnPg== X-Gm-Message-State: AD7BkJIcy9X/zoxACKSM5ktofASy4esJvVEqg7j+hG8BhWeGM/FNH4n3XTmx74VN+4ikRQ== X-Received: by 10.67.21.205 with SMTP id hm13mr7300601pad.56.1458144420270; Wed, 16 Mar 2016 09:07:00 -0700 (PDT) Received: from localhost.localdomain ([101.127.161.160]) by smtp.gmail.com with ESMTPSA id by3sm6693400pab.39.2016.03.16.09.06.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Mar 2016 09:06:59 -0700 (PDT) From: Vishnu Patekar To: robh+dt@kernel.org, corbet@lwn.net, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, maxime.ripard@free-electrons.com, linux@arm.linux.org.uk, emilio@elopez.com.ar Subject: [PATCH v4 13/13] ARM: sunxi: Add Kconfig for sunxi clocks Date: Thu, 17 Mar 2016 00:04:36 +0800 Message-Id: <1458144276-31108-14-git-send-email-vishnupatekar0510@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458144276-31108-1-git-send-email-vishnupatekar0510@gmail.com> References: <1458144276-31108-1-git-send-email-vishnupatekar0510@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160316_090720_077949_67DE6922 X-CRM114-Status: GOOD ( 14.83 ) X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com, patchesrdh@mveas.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, hdegoede@redhat.com, wens@csie.org, mturquette@baylibre.com, jenskuske@gmail.com, linus.walleij@linaro.org, linux-arm-kernel@lists.infradead.org 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=-3.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RDNS_NONE, T_DKIM_INVALID, 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 This patch adds Kconfig for sunxi clocks. Currently, only sun8i-apb0 and sun9i-cpus clocks are added. It'll help to use common clocks across different SOCs. We can switch to kconfig for other clocks in future. Signed-off-by: Vishnu Patekar --- drivers/clk/Kconfig | 1 + drivers/clk/sunxi/Kconfig | 5 +++++ drivers/clk/sunxi/Makefile | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 drivers/clk/sunxi/Kconfig diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index eca8e01..f9f42e6 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -210,3 +210,4 @@ source "drivers/clk/mvebu/Kconfig" source "drivers/clk/samsung/Kconfig" source "drivers/clk/tegra/Kconfig" +source "drivers/clk/sunxi/Kconfig" diff --git a/drivers/clk/sunxi/Kconfig b/drivers/clk/sunxi/Kconfig new file mode 100644 index 0000000..3e8ede4 --- /dev/null +++ b/drivers/clk/sunxi/Kconfig @@ -0,0 +1,5 @@ +config CLK_SUN8I_APB0 + def_bool MACH_SUN9I || MACH_SUN8I + +config CLK_SUN9I_CPUS + def_bool MACH_SUN9I || MACH_SUN8I diff --git a/drivers/clk/sunxi/Makefile b/drivers/clk/sunxi/Makefile index 3fd7901..38dfca8 100644 --- a/drivers/clk/sunxi/Makefile +++ b/drivers/clk/sunxi/Makefile @@ -17,8 +17,8 @@ obj-y += clk-sun9i-core.o obj-y += clk-sun9i-mmc.o obj-y += clk-usb.o -obj-$(CONFIG_MACH_SUN9I) += clk-sun8i-apb0.o -obj-$(CONFIG_MACH_SUN9I) += clk-sun9i-cpus.o +obj-$(CONFIG_CLK_SUN8I_APB0) += clk-sun8i-apb0.o +obj-$(CONFIG_CLK_SUN9I_CPUS) += clk-sun9i-cpus.o obj-$(CONFIG_MFD_SUN6I_PRCM) += \ clk-sun6i-ar100.o clk-sun6i-apb0.o clk-sun6i-apb0-gates.o \