mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 04:39:02 +02:00
The HiSilicon clock symbols already depend on ARCH_HISI or COMPILE_TEST, but the parent clock Makefile only descends into the hisilicon directory when ARCH_HISI is enabled. Add a hidden family gate selected by the HiSilicon clock and reset symbols, default it for ARCH_HISI, and use it for the parent Makefile descent. This keeps existing platform builds unchanged while allowing compile-test coverage. Tested with: make LLVM=1 ARCH=loongarch drivers/clk/hisilicon/ 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>
91 lines
2.2 KiB
Plaintext
91 lines
2.2 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config COMMON_CLK_HISI
|
|
bool
|
|
default ARCH_HISI
|
|
|
|
config COMMON_CLK_HI3516CV300
|
|
tristate "HI3516CV300 Clock Driver"
|
|
depends on ARCH_HISI || COMPILE_TEST
|
|
select RESET_HISI
|
|
select COMMON_CLK_HISI
|
|
default ARCH_HISI
|
|
help
|
|
Build the clock driver for hi3516cv300.
|
|
|
|
config COMMON_CLK_HI3519
|
|
tristate "Hi3519 Clock Driver"
|
|
depends on ARCH_HISI || COMPILE_TEST
|
|
select RESET_HISI
|
|
select COMMON_CLK_HISI
|
|
default ARCH_HISI
|
|
help
|
|
Build the clock driver for hi3519.
|
|
|
|
config COMMON_CLK_HI3559A
|
|
bool "Hi3559A Clock Driver"
|
|
depends on ARCH_HISI || COMPILE_TEST
|
|
select RESET_HISI
|
|
select COMMON_CLK_HISI
|
|
default ARCH_HISI
|
|
help
|
|
Build the clock driver for hi3559a.
|
|
|
|
config COMMON_CLK_HI3660
|
|
bool "Hi3660 Clock Driver"
|
|
depends on ARCH_HISI || COMPILE_TEST
|
|
select COMMON_CLK_HISI
|
|
default ARCH_HISI
|
|
help
|
|
Build the clock driver for hi3660.
|
|
|
|
config COMMON_CLK_HI3670
|
|
bool "Hi3670 Clock Driver"
|
|
depends on ARCH_HISI || COMPILE_TEST
|
|
select COMMON_CLK_HISI
|
|
default ARCH_HISI
|
|
help
|
|
Build the clock driver for hi3670.
|
|
|
|
config COMMON_CLK_HI3798CV200
|
|
tristate "Hi3798CV200 Clock Driver"
|
|
depends on ARCH_HISI || COMPILE_TEST
|
|
select RESET_HISI
|
|
select COMMON_CLK_HISI
|
|
default ARCH_HISI
|
|
help
|
|
Build the clock driver for hi3798cv200.
|
|
|
|
config COMMON_CLK_HI6220
|
|
bool "Hi6220 Clock Driver"
|
|
depends on ARCH_HISI || COMPILE_TEST
|
|
select COMMON_CLK_HISI
|
|
default ARCH_HISI
|
|
help
|
|
Build the Hisilicon Hi6220 clock driver based on the common clock framework.
|
|
|
|
config RESET_HISI
|
|
bool "HiSilicon Reset Controller Driver"
|
|
depends on ARCH_HISI || COMPILE_TEST
|
|
select COMMON_CLK_HISI
|
|
select RESET_CONTROLLER
|
|
help
|
|
Build reset controller driver for HiSilicon device chipsets.
|
|
|
|
config STUB_CLK_HI6220
|
|
bool "Hi6220 Stub Clock Driver" if EXPERT
|
|
depends on (COMMON_CLK_HI6220 || COMPILE_TEST)
|
|
depends on MAILBOX
|
|
select COMMON_CLK_HISI
|
|
default COMMON_CLK_HI6220
|
|
help
|
|
Build the Hisilicon Hi6220 stub clock driver.
|
|
|
|
config STUB_CLK_HI3660
|
|
bool "Hi3660 Stub Clock Driver" if EXPERT
|
|
depends on (COMMON_CLK_HI3660 || COMPILE_TEST)
|
|
depends on MAILBOX
|
|
select COMMON_CLK_HISI
|
|
default COMMON_CLK_HI3660
|
|
help
|
|
Build the Hisilicon Hi3660 stub clock driver.
|