mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
clk: davinci: add COMPILE_TEST support
Add a driver-scoped Kconfig symbol for the DaVinci clock drivers so they can be built through COMPILE_TEST without selecting the ARM DaVinci platform symbols. Keep the existing ARM platform behavior by defaulting the new symbol from ARCH_DAVINCI, and use it for the davinci clock Makefile entries. ARCH_DAVINCI_DA850 is the only remaining DaVinci platform symbol, so a single COMMON_CLK_DAVINCI symbol suffices; the whole directory builds together just fine. Assisted-by: Codex:GPT-5.5 Signed-off-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Brian Masney <bmasney@redhat.com> Signed-off-by: Brian Masney <bmasney@redhat.com>
This commit is contained in:
parent
48bec6fd8e
commit
551ba77549
|
|
@ -510,6 +510,7 @@ source "drivers/clk/analogbits/Kconfig"
|
|||
source "drivers/clk/aspeed/Kconfig"
|
||||
source "drivers/clk/bcm/Kconfig"
|
||||
source "drivers/clk/cix/Kconfig"
|
||||
source "drivers/clk/davinci/Kconfig"
|
||||
source "drivers/clk/eswin/Kconfig"
|
||||
source "drivers/clk/hisilicon/Kconfig"
|
||||
source "drivers/clk/imgtec/Kconfig"
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ obj-$(CONFIG_ARC_PLAT_AXS10X) += axs10x/
|
|||
obj-y += bcm/
|
||||
obj-$(CONFIG_ARCH_BERLIN) += berlin/
|
||||
obj-y += cix/
|
||||
obj-$(CONFIG_ARCH_DAVINCI) += davinci/
|
||||
obj-$(CONFIG_COMMON_CLK_DAVINCI) += davinci/
|
||||
obj-$(CONFIG_COMMON_CLK_ESWIN) += eswin/
|
||||
obj-$(CONFIG_COMMON_CLK_HISI) += hisilicon/
|
||||
obj-y += imgtec/
|
||||
|
|
|
|||
10
drivers/clk/davinci/Kconfig
Normal file
10
drivers/clk/davinci/Kconfig
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
config COMMON_CLK_DAVINCI
|
||||
bool "Clock drivers for TI DaVinci SoCs"
|
||||
depends on ARCH_DAVINCI || COMPILE_TEST
|
||||
depends on HAS_IOMEM
|
||||
select REGMAP_MMIO
|
||||
select RESET_CONTROLLER
|
||||
default ARCH_DAVINCI
|
||||
help
|
||||
Support for the clock controllers found on TI DaVinci SoCs.
|
||||
|
|
@ -1,11 +1,9 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
ifeq ($(CONFIG_COMMON_CLK), y)
|
||||
obj-$(CONFIG_ARCH_DAVINCI_DA8XX) += da8xx-cfgchip.o
|
||||
obj-y += da8xx-cfgchip.o
|
||||
|
||||
obj-y += pll.o
|
||||
obj-$(CONFIG_ARCH_DAVINCI_DA850) += pll-da850.o
|
||||
obj-y += pll-da850.o
|
||||
|
||||
obj-y += psc.o
|
||||
obj-$(CONFIG_ARCH_DAVINCI_DA850) += psc-da850.o
|
||||
endif
|
||||
obj-y += psc-da850.o
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user