Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Paul Cercueil and committed by
Stephen Boyd
0880fb86 5b394b2d

+43 -5
+1
drivers/clk/Kconfig
··· 287 287 source "drivers/clk/bcm/Kconfig" 288 288 source "drivers/clk/hisilicon/Kconfig" 289 289 source "drivers/clk/imgtec/Kconfig" 290 + source "drivers/clk/ingenic/Kconfig" 290 291 source "drivers/clk/keystone/Kconfig" 291 292 source "drivers/clk/mediatek/Kconfig" 292 293 source "drivers/clk/meson/Kconfig"
+1 -1
drivers/clk/Makefile
··· 72 72 obj-$(CONFIG_ARCH_HISI) += hisilicon/ 73 73 obj-y += imgtec/ 74 74 obj-$(CONFIG_ARCH_MXC) += imx/ 75 - obj-$(CONFIG_MACH_INGENIC) += ingenic/ 75 + obj-y += ingenic/ 76 76 obj-$(CONFIG_ARCH_KEYSTONE) += keystone/ 77 77 obj-$(CONFIG_MACH_LOONGSON32) += loongson1/ 78 78 obj-y += mediatek/
+37
drivers/clk/ingenic/Kconfig
··· 1 + menu "Ingenic JZ47xx CGU drivers" 2 + depends on MIPS 3 + 4 + config INGENIC_CGU_COMMON 5 + bool 6 + 7 + config INGENIC_CGU_JZ4740 8 + bool "Ingenic JZ4740 CGU driver" 9 + default MACH_JZ4740 10 + select INGENIC_CGU_COMMON 11 + help 12 + Support the clocks provided by the CGU hardware on Ingenic JZ4740 13 + and compatible SoCs. 14 + 15 + If building for a JZ4740 SoC, you want to say Y here. 16 + 17 + config INGENIC_CGU_JZ4770 18 + bool "Ingenic JZ4770 CGU driver" 19 + default MACH_JZ4770 20 + select INGENIC_CGU_COMMON 21 + help 22 + Support the clocks provided by the CGU hardware on Ingenic JZ4770 23 + and compatible SoCs. 24 + 25 + If building for a JZ4770 SoC, you want to say Y here. 26 + 27 + config INGENIC_CGU_JZ4780 28 + bool "Ingenic JZ4780 CGU driver" 29 + default MACH_JZ4780 30 + select INGENIC_CGU_COMMON 31 + help 32 + Support the clocks provided by the CGU hardware on Ingenic JZ4780 33 + and compatible SoCs. 34 + 35 + If building for a JZ4780 SoC, you want to say Y here. 36 + 37 + endmenu
+4 -4
drivers/clk/ingenic/Makefile
··· 1 - obj-y += cgu.o 2 - obj-$(CONFIG_MACH_JZ4740) += jz4740-cgu.o 3 - obj-$(CONFIG_MACH_JZ4770) += jz4770-cgu.o 4 - obj-$(CONFIG_MACH_JZ4780) += jz4780-cgu.o 1 + obj-$(CONFIG_INGENIC_CGU_COMMON) += cgu.o 2 + obj-$(CONFIG_INGENIC_CGU_JZ4740) += jz4740-cgu.o 3 + obj-$(CONFIG_INGENIC_CGU_JZ4770) += jz4770-cgu.o 4 + obj-$(CONFIG_INGENIC_CGU_JZ4780) += jz4780-cgu.o