xref: /linux/drivers/phy/spacemit/Kconfig (revision 16e6a1a3cb3fa5fa11cd76a9d71235d927923329)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# Phy drivers for SpacemiT platforms
4#
5config PHY_SPACEMIT_K1_PCIE
6	tristate "PCIe and combo PHY driver for the SpacemiT K1 SoC"
7	depends on ARCH_SPACEMIT || COMPILE_TEST
8	depends on COMMON_CLK
9	depends on HAS_IOMEM
10	depends on OF
11	select GENERIC_PHY
12	default ARCH_SPACEMIT
13	help
14	  Enable support for the PCIe and USB 3 combo PHY and two
15	  PCIe-only PHYs used in the SpacemiT K1 SoC.
16
17config PHY_SPACEMIT_K1_USB2
18	tristate "SpacemiT K1 USB 2.0 PHY support"
19	depends on (ARCH_SPACEMIT || COMPILE_TEST) && OF
20	depends on COMMON_CLK
21	depends on USB_COMMON
22	select GENERIC_PHY
23	help
24	  Enable this to support K1 USB 2.0 PHY driver. This driver takes care of
25	  enabling and clock setup and will be used by K1 udc/ehci/otg/xhci driver.
26
27config PHY_SPACEMIT_K3_COMMON_OPS
28	tristate
29	select MFD_SYSCON
30	select GENERIC_PHY
31
32config PHY_SPACEMIT_K3_COMBO_PHY
33	tristate "SpacemiT K3 USB3/PCIe PHY support"
34	depends on (ARCH_SPACEMIT || COMPILE_TEST) && OF
35	depends on COMMON_CLK
36	select PHY_SPACEMIT_K3_COMMON_OPS
37	help
38	  Enable this to support K3 USB3/PCIe combo PHY driver. This
39	  driver takes care of enabling and clock setup and will be used
40	  by K3 dwc3 driver.
41	  If unsure, say N.
42