hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/phy/allwinner/Kconfig
....@@ -1,9 +1,11 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # Phy drivers for Allwinner platforms
34 #
45 config PHY_SUN4I_USB
56 tristate "Allwinner sunxi SoC USB PHY driver"
6
- depends on ARCH_SUNXI && HAS_IOMEM && OF
7
+ depends on ARCH_SUNXI || COMPILE_TEST
8
+ depends on HAS_IOMEM
79 depends on RESET_CONTROLLER
810 depends on EXTCON
911 depends on POWER_SUPPLY
....@@ -17,9 +19,23 @@
1719 This driver controls the entire USB PHY block, both the USB OTG
1820 parts, as well as the 2 regular USB 2 host PHYs.
1921
22
+config PHY_SUN6I_MIPI_DPHY
23
+ tristate "Allwinner A31 MIPI D-PHY Support"
24
+ depends on ARCH_SUNXI || COMPILE_TEST
25
+ depends on HAS_IOMEM && COMMON_CLK
26
+ depends on RESET_CONTROLLER
27
+ select GENERIC_PHY
28
+ select GENERIC_PHY_MIPI_DPHY
29
+ select REGMAP_MMIO
30
+ help
31
+ Choose this option if you have an Allwinner SoC with
32
+ MIPI-DSI support. If M is selected, the module will be
33
+ called sun6i_mipi_dphy.
34
+
2035 config PHY_SUN9I_USB
2136 tristate "Allwinner sun9i SoC USB PHY driver"
22
- depends on ARCH_SUNXI && HAS_IOMEM && OF
37
+ depends on ARCH_SUNXI || COMPILE_TEST
38
+ depends on HAS_IOMEM
2339 depends on RESET_CONTROLLER
2440 depends on USB_SUPPORT
2541 select USB_COMMON
....@@ -29,3 +45,15 @@
2945 sun9i SoCs.
3046
3147 This driver controls each individual USB 2 host PHY.
48
+
49
+config PHY_SUN50I_USB3
50
+ tristate "Allwinner H6 SoC USB3 PHY driver"
51
+ depends on ARCH_SUNXI || COMPILE_TEST
52
+ depends on HAS_IOMEM && OF
53
+ depends on RESET_CONTROLLER
54
+ select GENERIC_PHY
55
+ help
56
+ Enable this to support the USB3.0-capable transceiver that is
57
+ part of Allwinner H6 SoC.
58
+
59
+ This driver controls each individual USB 2+3 host PHY combo.