forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/phy/ti/Kconfig
....@@ -1,9 +1,10 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # Phy drivers for TI platforms
34 #
45 config PHY_DA8XX_USB
56 tristate "TI DA8xx USB PHY Driver"
6
- depends on ARCH_DAVINCI_DA8XX
7
+ depends on ARCH_DAVINCI_DA8XX || COMPILE_TEST
78 select GENERIC_PHY
89 select MFD_SYSCON
910 help
....@@ -13,12 +14,40 @@
1314
1415 config PHY_DM816X_USB
1516 tristate "TI dm816x USB PHY driver"
16
- depends on ARCH_OMAP2PLUS
17
+ depends on ARCH_OMAP2PLUS || COMPILE_TEST
1718 depends on USB_SUPPORT
1819 select GENERIC_PHY
1920 select USB_PHY
2021 help
2122 Enable this for dm816x USB to work.
23
+
24
+config PHY_AM654_SERDES
25
+ tristate "TI AM654 SERDES support"
26
+ depends on OF && (ARCH_K3 || COMPILE_TEST)
27
+ depends on COMMON_CLK
28
+ select GENERIC_PHY
29
+ select MULTIPLEXER
30
+ select REGMAP_MMIO
31
+ select MUX_MMIO
32
+ help
33
+ This option enables support for TI AM654 SerDes PHY used for
34
+ PCIe.
35
+
36
+config PHY_J721E_WIZ
37
+ tristate "TI J721E WIZ (SERDES Wrapper) support"
38
+ depends on OF && (ARCH_K3 || COMPILE_TEST)
39
+ depends on HAS_IOMEM && OF_ADDRESS
40
+ depends on COMMON_CLK
41
+ select GENERIC_PHY
42
+ select MULTIPLEXER
43
+ select REGMAP_MMIO
44
+ select MUX_MMIO
45
+ help
46
+ This option enables support for WIZ module present in TI's J721E
47
+ SoC. WIZ is a serdes wrapper used to configure some of the input
48
+ signals to the SERDES (Sierra/Torrent). This driver configures
49
+ three clock selects (pll0, pll1, dig) and resets for each of the
50
+ lanes.
2251
2352 config OMAP_CONTROL_PHY
2453 tristate "OMAP CONTROL PHY Driver"
....@@ -33,12 +62,11 @@
3362
3463 config OMAP_USB2
3564 tristate "OMAP USB2 PHY Driver"
36
- depends on ARCH_OMAP2PLUS
65
+ depends on ARCH_OMAP2PLUS || ARCH_K3
3766 depends on USB_SUPPORT
3867 select GENERIC_PHY
3968 select USB_PHY
40
- select OMAP_CONTROL_PHY
41
- depends on OMAP_OCP2SCP
69
+ select OMAP_CONTROL_PHY if ARCH_OMAP2PLUS || COMPILE_TEST
4270 help
4371 Enable this to support the transceiver that is part of SOC. This
4472 driver takes care of all the PHY functionality apart from comparator.
....@@ -50,7 +78,6 @@
5078 depends on ARCH_OMAP2PLUS || COMPILE_TEST
5179 select GENERIC_PHY
5280 select OMAP_CONTROL_PHY
53
- depends on OMAP_OCP2SCP
5481 help
5582 Enable this to support the PIPE3 PHY that is part of TI SOCs. This
5683 driver takes care of all the PHY functionality apart from comparator.
....@@ -76,3 +103,11 @@
76103 family chips (including the TWL5030 and TPS659x0 devices).
77104 This transceiver supports high and full speed devices plus,
78105 in host mode, low speed.
106
+
107
+config PHY_TI_GMII_SEL
108
+ tristate
109
+ select GENERIC_PHY
110
+ select REGMAP
111
+ help
112
+ This driver supports configuring of the TI CPSW Port mode depending on
113
+ the Ethernet PHY connected to the CPSW Port.