Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1350915

[PATCH v3 13/13] ARM: sunxi: Add Kconfig for sunxi clocks

From Vishnu Patekar <vishnupatekar0510@gmail.com>
Newsgroups linux.kernel
Subject [PATCH v3 13/13] ARM: sunxi: Add Kconfig for sunxi clocks
Date 2016-03-05 16:50 +0100
Message-ID <r9mCS-8eS-15@gated-at.bofh.it> (permalink)
References <r9mCR-8eS-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <vishnupatekar0510@gmail.com>
---
 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 \
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 00/13] Add A83T clk, r_pio, mmc rsb support Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
  [PATCH v3 13/13] ARM: sunxi: Add Kconfig for sunxi clocks Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
    Re: [PATCH v3 13/13] ARM: sunxi: Add Kconfig for sunxi clocks Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 17:30 +0100
  [PATCH v3 06/13] ARM: dts: sun8i-a83t: Add mmc controller nodes Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
  [PATCH v3 09/13] ARM: dts: sun8i-a83t: Add RSB controller device node to dtsi Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
  [PATCH v3 12/13] ARM: dts: sun8i: Add A83T based Sinovoip Bpi-M3 Board Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
  [PATCH v3 10/13] ARM: dts: sun8i-a83t: add mmc0 CD pin Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
  [PATCH v3 01/13] pinctrl: sunxi: Add A83T R_PIO controller support Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
    Re: [PATCH v3 01/13] pinctrl: sunxi: Add A83T R_PIO controller support Linus Walleij <linus.walleij@linaro.org> - 2016-03-09 04:00 +0100
      Re: [PATCH v3 01/13] pinctrl: sunxi: Add A83T R_PIO controller support Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-12 05:50 +0100
        Re: [PATCH v3 01/13] pinctrl: sunxi: Add A83T R_PIO controller  support Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-03-14 12:00 +0100
  [PATCH v3 02/13] clk: sunxi: add ahb1 clock for A83T Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
    Re: [linux-sunxi] [PATCH v3 02/13] clk: sunxi: add ahb1 clock for A83T Julian Calaby <julian.calaby@gmail.com> - 2016-03-07 03:50 +0100
  [PATCH v3 05/13] ARM: dts: sun8i-a83t: add mmc clock nodes Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
  [PATCH v3 04/13] ARM: dts: sun8i-a83t: Add basic clocks and resets Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
  [PATCH v3 11/13] ARM: dts: sun8i: enable mmc for H8Homlet Board. Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
  [PATCH v3 07/13] ARM: dts: sun8i-a83t: Add PRCM related clocks and resets Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100
  [PATCH v3 08/13] ARM: dts: sun8i-a83t: Add R_PIO controller node to the dtsi Vishnu Patekar <vishnupatekar0510@gmail.com> - 2016-03-05 16:50 +0100

csiph-web