Skip to content

Commit 93c89f0

Browse files
fifteenhexbebarino
authored andcommitted
clk: mstar: Allow MStar clk drivers to be compile tested
Allow COMPILE_TEST to also build the MStar clk drivers instead of only building them when ARCH_MSTARV7 is selected. Signed-off-by: Daniel Palmer <[email protected]> Suggested-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] [[email protected]: Drop regmap select too] Signed-off-by: Stephen Boyd <[email protected]>
1 parent bef7a78 commit 93c89f0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

drivers/clk/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ obj-$(CONFIG_MACH_PIC32) += microchip/
9595
ifeq ($(CONFIG_COMMON_CLK), y)
9696
obj-$(CONFIG_ARCH_MMP) += mmp/
9797
endif
98-
obj-$(CONFIG_ARCH_MSTARV7) += mstar/
98+
obj-y += mstar/
9999
obj-y += mvebu/
100100
obj-$(CONFIG_ARCH_MXS) += mxs/
101101
obj-$(CONFIG_COMMON_CLK_NXP) += nxp/

drivers/clk/mstar/Kconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
config MSTAR_MSC313_MPLL
3-
bool
4-
select REGMAP
3+
bool "MStar MPLL driver"
4+
depends on ARCH_MSTARV7 || COMPILE_TEST
5+
default ARCH_MSTARV7
56
select REGMAP_MMIO
7+
help
8+
Support for the MPLL PLL and dividers block present on
9+
MStar/Sigmastar SoCs.

0 commit comments

Comments
 (0)