@@ -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"
new file mode 100644
@@ -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
@@ -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
Add proper kconfig entries for Allwinner platform, CLK_SUN50I_A64 is kconfig option for A64 clock driver. Signed-off-by: Jagan Teki <jagan@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