diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-07-25 17:49:27 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-07-26 19:09:08 +0530 |
commit | e7379477f4478c290be47cde3ad8a39d5ff561d2 (patch) | |
tree | c710a71871f27ca8effbd434cbb1f5a7208d37ae /drivers/phy | |
parent | ec6beb82587c73cff52730567016cbc6c17822a8 (diff) |
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>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/starfive/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/phy/starfive/Kconfig b/drivers/phy/starfive/Kconfig index 0508f9b123e0..9508e2143011 100644 --- a/drivers/phy/starfive/Kconfig +++ b/drivers/phy/starfive/Kconfig @@ -3,6 +3,8 @@ # 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 @@ -32,3 +34,5 @@ config PHY_STARFIVE_JH7110_USB used with the Cadence USB controller. If M is selected, the module will be called phy-jh7110-usb.ko. + +endif # ARCH_STARFIVE || COMPILE_TEST |