[U-Boot] [RFC 10/35] clk: sunxi: Add Kconfig entry

Jagan Teki jagan at amarulasolutions.com
Mon Jul 16 11:28:25 UTC 2018


Add proper kconfig entries for Allwinner platform,
CLK_SUN50I_A64 is kconfig option for A64 clock driver.

Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
---
 drivers/clk/Kconfig        |  1 +
 drivers/clk/sunxi/Kconfig  | 18 ++++++++++++++++++
 drivers/clk/sunxi/Makefile |  2 +-
 3 files changed, 20 insertions(+), 1 deletion(-)
 create mode 100644 drivers/clk/sunxi/Kconfig

diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 3e66dd97c1..f32a2af70f 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -87,6 +87,7 @@ source "drivers/clk/at91/Kconfig"
 source "drivers/clk/exynos/Kconfig"
 source "drivers/clk/mvebu/Kconfig"
 source "drivers/clk/renesas/Kconfig"
+source "drivers/clk/sunxi/Kconfig"
 source "drivers/clk/tegra/Kconfig"
 source "drivers/clk/uniphier/Kconfig"
 
diff --git a/drivers/clk/sunxi/Kconfig b/drivers/clk/sunxi/Kconfig
new file mode 100644
index 0000000000..3a86c91e75
--- /dev/null
+++ b/drivers/clk/sunxi/Kconfig
@@ -0,0 +1,18 @@
+config CLK_SUNXI
+	bool "Clock support for Allwinner SoCs"
+	depends on ARCH_SUNXI
+	select CLK
+	help
+	  This enables support for common clock driver API on Allwinner
+	  SoCs.
+
+if CLK_SUNXI
+
+config CLK_SUN50I_A64
+	bool "Clock driver for Allwinner A64"
+	default MACH_SUN50I
+	help
+	  This enables common clock driver support for platforms based
+	  on Allwinner A64 SoC.
+
+endif # CLK_SUNXI
diff --git a/drivers/clk/sunxi/Makefile b/drivers/clk/sunxi/Makefile
index 6cf122c634..fc9da34208 100644
--- a/drivers/clk/sunxi/Makefile
+++ b/drivers/clk/sunxi/Makefile
@@ -4,4 +4,4 @@
 # SPDX-License-Identifier:      GPL-2.0+
 #
 
-obj-$(CONFIG_MACH_SUN50I) += clk_a64.o
+obj-$(CONFIG_CLK_SUN50I_A64) += clk_a64.o
-- 
2.17.1



More information about the U-Boot mailing list