Skip to content

Commit c61f19e

Browse files
hal-fengConchuOD
authored andcommitted
clk: starfive: Replace SOC_STARFIVE with ARCH_STARFIVE
Using ARCH_FOO symbol is preferred than SOC_FOO. Set obj-y for starfive/ in Makefile, so the StarFive drivers can be compiled with COMPILE_TEST=y but ARCH_STARFIVE=n. Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Heiko Stuebner <heiko.stuebner@vrull.eu> Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com> Signed-off-by: Hal Feng <hal.feng@starfivetech.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
1 parent 3de0c91 commit c61f19e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/clk/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ obj-$(CONFIG_PLAT_SPEAR) += spear/
117117
obj-y += sprd/
118118
obj-$(CONFIG_ARCH_STI) += st/
119119
obj-$(CONFIG_ARCH_STM32) += stm32/
120-
obj-$(CONFIG_SOC_STARFIVE) += starfive/
120+
obj-y += starfive/
121121
obj-$(CONFIG_ARCH_SUNXI) += sunxi/
122122
obj-y += sunxi-ng/
123123
obj-$(CONFIG_ARCH_TEGRA) += tegra/

drivers/clk/starfive/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
config CLK_STARFIVE_JH7100
44
bool "StarFive JH7100 clock support"
5-
depends on SOC_STARFIVE || COMPILE_TEST
6-
default SOC_STARFIVE
5+
depends on ARCH_STARFIVE || COMPILE_TEST
6+
default ARCH_STARFIVE
77
help
88
Say yes here to support the clock controller on the StarFive JH7100
99
SoC.
1010

1111
config CLK_STARFIVE_JH7100_AUDIO
1212
tristate "StarFive JH7100 audio clock support"
1313
depends on CLK_STARFIVE_JH7100
14-
default m if SOC_STARFIVE
14+
default m if ARCH_STARFIVE
1515
help
1616
Say Y or M here to support the audio clocks on the StarFive JH7100
1717
SoC.

0 commit comments

Comments
 (0)