summaryrefslogtreecommitdiff
path: root/drivers/clk/ingenic/Makefile
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2018-08-23 15:17:41 +0200
committerStephen Boyd <sboyd@kernel.org>2018-10-16 15:19:15 -0700
commit0880fb86608acf1bbf4df9b3580e5a1b58fe8ba6 (patch)
tree6fe77bbcbba081ff38b351bbf9e364d0ecce5c8f /drivers/clk/ingenic/Makefile
parent5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff)
clk: ingenic: Add proper Kconfig entries
Previously, the CGU code corresponding to the SoC for which we're compiling the kernel was the only one enabled, which made it impossible to build one kernel that supports them all. Now, it is possible to select more than one SoC to support. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/ingenic/Makefile')
-rw-r--r--drivers/clk/ingenic/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clk/ingenic/Makefile b/drivers/clk/ingenic/Makefile
index 1456e4cdb562..8b8dc79c7ce6 100644
--- a/drivers/clk/ingenic/Makefile
+++ b/drivers/clk/ingenic/Makefile
@@ -1,4 +1,4 @@
-obj-y += cgu.o
-obj-$(CONFIG_MACH_JZ4740) += jz4740-cgu.o
-obj-$(CONFIG_MACH_JZ4770) += jz4770-cgu.o
-obj-$(CONFIG_MACH_JZ4780) += jz4780-cgu.o
+obj-$(CONFIG_INGENIC_CGU_COMMON) += cgu.o
+obj-$(CONFIG_INGENIC_CGU_JZ4740) += jz4740-cgu.o
+obj-$(CONFIG_INGENIC_CGU_JZ4770) += jz4770-cgu.o
+obj-$(CONFIG_INGENIC_CGU_JZ4780) += jz4780-cgu.o