clk: sprd: Add dependency for SPRD_UMS512_CLK
authorCixi Geng <cixi.geng1@unisoc.com>
Wed, 1 Feb 2023 09:13:00 +0000 (17:13 +0800)
committerStephen Boyd <sboyd@kernel.org>
Sat, 11 Feb 2023 00:13:48 +0000 (16:13 -0800)
Add depends on and default for ums512 clk config.

Signed-off-by: Cixi Geng <cixi.geng1@unisoc.com>
Link: https://lore.kernel.org/r/20230201091300.3201-1-cixi.geng@linux.dev
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/sprd/Kconfig

index c744bd9..2f19c8d 100644 (file)
@@ -24,6 +24,8 @@ config SPRD_SC9863A_CLK
 
 config SPRD_UMS512_CLK
        tristate "Support for the Spreadtrum UMS512 clocks"
+       depends on (ARM64 && ARCH_SPRD) || COMPILE_TEST
+       default ARM64 && ARCH_SPRD
        help
          Support for the global clock controller on ums512 devices.
          Say Y if you want to use peripheral devices on ums512 SoC.