xref: /linux/drivers/phy/spacemit/Kconfig (revision 392101240b22256105da3b5af6348d1889c63112)
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 HAS_IOMEM
22	depends on USB_COMMON
23	select GENERIC_PHY
24	select REGMAP_MMIO
25	default ARCH_SPACEMIT
26	help
27	  Enable this to support K1 USB 2.0 PHY driver. This driver takes care of
28	  enabling and clock setup and will be used by K1 udc/ehci/otg/xhci driver.
29
30config PHY_SPACEMIT_K3_COMMON_OPS
31	tristate
32	select MFD_SYSCON
33	select GENERIC_PHY
34
35config PHY_SPACEMIT_K3_COMBO_PHY
36	tristate "SpacemiT K3 USB3/PCIe PHY support"
37	depends on (ARCH_SPACEMIT || COMPILE_TEST) && OF
38	depends on COMMON_CLK
39	select PHY_SPACEMIT_K3_COMMON_OPS
40	help
41	  Enable this to support K3 USB3/PCIe combo PHY driver. This
42	  driver takes care of enabling and clock setup and will be used
43	  by K3 dwc3 driver.
44	  If unsure, say N.
45