mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 20:32:22 +00:00
f7df8c92b4
Restrict Kconfig scope for SiFive clock and reset IP block drivers such that they won't appear on most configurations that are unlikely to support them. This is based on a suggestion from Pavel Machek <pavel@ucw.cz>. Ideally this should be dependent on CONFIG_ARCH_SIFIVE, but since that Kconfig directive does not yet exist, add dependencies on RISCV or COMPILE_TEST for now. Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com> Signed-off-by: Paul Walmsley <paul@pwsan.com> Reported-by: Pavel Machek <pavel@ucw.cz> Cc: Michael Turquette <mturquette@baylibre.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
20 lines
478 B
Plaintext
20 lines
478 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
menuconfig CLK_SIFIVE
|
|
bool "SiFive SoC driver support"
|
|
depends on RISCV || COMPILE_TEST
|
|
help
|
|
SoC drivers for SiFive Linux-capable SoCs.
|
|
|
|
if CLK_SIFIVE
|
|
|
|
config CLK_SIFIVE_FU540_PRCI
|
|
bool "PRCI driver for SiFive FU540 SoCs"
|
|
select CLK_ANALOGBITS_WRPLL_CLN28HPC
|
|
help
|
|
Supports the Power Reset Clock interface (PRCI) IP block found in
|
|
FU540 SoCs. If this kernel is meant to run on a SiFive FU540 SoC,
|
|
enable this driver.
|
|
|
|
endif
|