From patchwork Sat Mar 5 15:43:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vishnupatekar X-Patchwork-Id: 8510851 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6B1C99F2F0 for ; Sat, 5 Mar 2016 15:50:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F0EF201CE for ; Sat, 5 Mar 2016 15:50:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [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 A6956201CD for ; Sat, 5 Mar 2016 15:50:40 +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 1acERx-0000X9-NP; Sat, 05 Mar 2016 15:49:01 +0000 Received: from mail-pa0-x242.google.com ([2607:f8b0:400e:c03::242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1acENx-0003ma-6B for linux-arm-kernel@lists.infradead.org; Sat, 05 Mar 2016 15:45:00 +0000 Received: by mail-pa0-x242.google.com with SMTP id hj7so4847174pac.1 for ; Sat, 05 Mar 2016 07:44:35 -0800 (PST) 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=HQD7WT+9GlYv8MFsH+lwbLE1fkR9eJ8tXGP0wydBntw=; b=U6+pqfU+7hl2QubRKEgtT77hY8YwO4Kubo8EDrlcPj/DG2T5g6fm6yqGuG0l6+ac/k m2brUuf0qhca3einLgQMQRZB5Is/rCfdyz1Ea5fQSeOsbW6SBwwfAvg2IGsI5S1kgDjL /M/Yakbb9mnMU6uLdy/4e6KHSDDJNVi2ZetxgoS0bCZiOgJl3bR7tVLaDiZYQx7MCMUu 0KDC/ZcI7gpOzi7uT3jweMJxNILKdhH+Kw34uE4+c4HgwlV9CFPWybXCXWkd09Gc3g+a u8+rWGg3RGhz57NYdBnFnEjDq2pS8tpeFf+AnXMwngllNK6cXri0io46+PIfWWu6RTCc o7oQ== 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=HQD7WT+9GlYv8MFsH+lwbLE1fkR9eJ8tXGP0wydBntw=; b=Z6WwHsgTfUfOmPqj0LlmFod0v6YDnAuMO3L3lNaI9zNjkIOJXN9KnuZFblBBwEDGtf P04EJPE+nrru9Nt5TYpuqn9e4ud+4EamrcKXKGUkKOr6+peaAD51bgjX4EbdBM2JXXNI QGF1Xok5IFpzpcfwMZmaWK96pLGMwSvEyIFIyFZXmyloh3HOR2qSpMfryd8DGGip6Tps 3FxlI68h57ePSLOp8/Ro09cYkJamfojfDgmmLMZp7QNRQ3q723ARJpMStXGUnRLE4YHV jfmWiRz+EIp/a4+TBKc/sqMr+wPMc9MxqdmcDd6NHIOHAduOCdXrugrkDsuznhe1UlA/ FKBA== X-Gm-Message-State: AD7BkJJ3l6sP9zkwKqTo7lagHhCwseNrcSRsAiSvvX0T4Ro9/P51PmCe2l2sVFFGrL22fA== X-Received: by 10.66.150.170 with SMTP id uj10mr20518668pab.91.1457192675184; Sat, 05 Mar 2016 07:44:35 -0800 (PST) Received: from localhost.localdomain ([101.127.161.160]) by smtp.gmail.com with ESMTPSA id ah10sm13230527pad.23.2016.03.05.07.44.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 05 Mar 2016 07:44:34 -0800 (PST) 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 v3 13/13] ARM: sunxi: Add Kconfig for sunxi clocks Date: Sat, 5 Mar 2016 23:43:06 +0800 Message-Id: <1457192586-25596-14-git-send-email-vishnupatekar0510@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1457192586-25596-1-git-send-email-vishnupatekar0510@gmail.com> References: <1457192586-25596-1-git-send-email-vishnupatekar0510@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160305_074453_668095_2AEBC3AC X-CRM114-Status: GOOD ( 14.25 ) 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=-4.1 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=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..afc55c9 --- /dev/null +++ b/drivers/clk/sunxi/Kconfig @@ -0,0 +1,5 @@ +config CLK_SUN8I_APB0 + def_bool MACH_SUN9I || MACH_SUN8I_A83T + +config CLK_SUN9I_CPUS + def_bool MACH_SUN9I || MACH_SUN8I_A83T 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 \