linux/drivers/phy/starfive/Kconfig
Geert Uytterhoeven e7379477f4 phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE
The various StarFive PHYs are only present on StarFive SoCs.  Hence add
a dependency on ARCH_STARFIVE, to prevent asking the user about these
drivers when configuring a kernel without StarFive SoC support.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Link: https://lore.kernel.org/r/12097f6107a18e2f7cfb80f47ac7b27808e062c4.1690300076.git.geert+renesas@glider.be
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2023-07-26 19:09:08 +05:30

39 lines
1 KiB
Plaintext

# SPDX-License-Identifier: GPL-2.0-only
#
# Phy drivers for StarFive platforms
#
if ARCH_STARFIVE || COMPILE_TEST
config PHY_STARFIVE_JH7110_DPHY_RX
tristate "StarFive JH7110 D-PHY RX support"
depends on HAS_IOMEM
select GENERIC_PHY
select GENERIC_PHY_MIPI_DPHY
help
Choose this option if you have a StarFive D-PHY in your
system. If M is selected, the module will be called
phy-jh7110-dphy-rx.ko.
config PHY_STARFIVE_JH7110_PCIE
tristate "Starfive JH7110 PCIE 2.0/USB 3.0 PHY support"
depends on HAS_IOMEM
select GENERIC_PHY
help
Enable this to support the StarFive PCIe 2.0 PHY,
or used as USB 3.0 PHY.
If M is selected, the module will be called
phy-jh7110-pcie.ko.
config PHY_STARFIVE_JH7110_USB
tristate "Starfive JH7110 USB 2.0 PHY support"
depends on USB_SUPPORT
select GENERIC_PHY
help
Enable this to support the StarFive USB 2.0 PHY,
used with the Cadence USB controller.
If M is selected, the module will be called
phy-jh7110-usb.ko.
endif # ARCH_STARFIVE || COMPILE_TEST