mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 00:55:26 +07:00
92b58b3474
TI am335x/am437x/dra7(am5)/dm814x CPSW3G Ethernet Subsystem supports two 10/100/1000 Ethernet ports with selectable G/MII, RMII, and RGMII interfaces. The interface mode is selected by configuring the MII mode selection register(s) (GMII_SEL) in the System Control Module chapter (SCM). GMII_SEL register(s) and bit fields placement in SCM are different between SoCs while fields meaning is the same. Historically CPSW external Port's interface mode selection configuration was introduced using custom API and driver cpsw-phy-sel.c. This leads to unnecessary driver, DT binding and custom API support effort. This patch introduces CPSW Port's PHY Interface Mode selection Driver (phy-gmii-sel) which implements standard Linux PHY interface and used as a replacement for TI's specific driver cpsw-phy-sel.c and corresponding custom API. Cc: Kishon Vijay Abraham I <kishon@ti.com> Cc: Tony Lindgren <tony@atomide.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
89 lines
2.6 KiB
Plaintext
89 lines
2.6 KiB
Plaintext
#
|
|
# Phy drivers for TI platforms
|
|
#
|
|
config PHY_DA8XX_USB
|
|
tristate "TI DA8xx USB PHY Driver"
|
|
depends on ARCH_DAVINCI_DA8XX
|
|
select GENERIC_PHY
|
|
select MFD_SYSCON
|
|
help
|
|
Enable this to support the USB PHY on DA8xx SoCs.
|
|
|
|
This driver controls both the USB 1.1 PHY and the USB 2.0 PHY.
|
|
|
|
config PHY_DM816X_USB
|
|
tristate "TI dm816x USB PHY driver"
|
|
depends on ARCH_OMAP2PLUS
|
|
depends on USB_SUPPORT
|
|
select GENERIC_PHY
|
|
select USB_PHY
|
|
help
|
|
Enable this for dm816x USB to work.
|
|
|
|
config OMAP_CONTROL_PHY
|
|
tristate "OMAP CONTROL PHY Driver"
|
|
depends on ARCH_OMAP2PLUS || COMPILE_TEST
|
|
help
|
|
Enable this to add support for the PHY part present in the control
|
|
module. This driver has API to power on the USB2 PHY and to write to
|
|
the mailbox. The mailbox is present only in omap4 and the register to
|
|
power on the USB2 PHY is present in OMAP4 and OMAP5. OMAP5 has an
|
|
additional register to power on USB3 PHY/SATA PHY/PCIE PHY
|
|
(PIPE3 PHY).
|
|
|
|
config OMAP_USB2
|
|
tristate "OMAP USB2 PHY Driver"
|
|
depends on ARCH_OMAP2PLUS
|
|
depends on USB_SUPPORT
|
|
select GENERIC_PHY
|
|
select USB_PHY
|
|
select OMAP_CONTROL_PHY
|
|
depends on OMAP_OCP2SCP
|
|
help
|
|
Enable this to support the transceiver that is part of SOC. This
|
|
driver takes care of all the PHY functionality apart from comparator.
|
|
The USB OTG controller communicates with the comparator using this
|
|
driver.
|
|
|
|
config TI_PIPE3
|
|
tristate "TI PIPE3 PHY Driver"
|
|
depends on ARCH_OMAP2PLUS || COMPILE_TEST
|
|
select GENERIC_PHY
|
|
select OMAP_CONTROL_PHY
|
|
depends on OMAP_OCP2SCP
|
|
help
|
|
Enable this to support the PIPE3 PHY that is part of TI SOCs. This
|
|
driver takes care of all the PHY functionality apart from comparator.
|
|
This driver interacts with the "OMAP Control PHY Driver" to power
|
|
on/off the PHY.
|
|
|
|
config PHY_TUSB1210
|
|
tristate "TI TUSB1210 ULPI PHY module"
|
|
depends on USB_ULPI_BUS
|
|
select GENERIC_PHY
|
|
help
|
|
Support for TI TUSB1210 USB ULPI PHY.
|
|
|
|
config TWL4030_USB
|
|
tristate "TWL4030 USB Transceiver Driver"
|
|
depends on TWL4030_CORE && REGULATOR_TWL4030 && USB_MUSB_OMAP2PLUS
|
|
depends on USB_SUPPORT
|
|
depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't 'y'
|
|
select GENERIC_PHY
|
|
select USB_PHY
|
|
help
|
|
Enable this to support the USB OTG transceiver on TWL4030
|
|
family chips (including the TWL5030 and TPS659x0 devices).
|
|
This transceiver supports high and full speed devices plus,
|
|
in host mode, low speed.
|
|
|
|
config PHY_TI_GMII_SEL
|
|
tristate
|
|
default y if TI_CPSW=y
|
|
depends on TI_CPSW || COMPILE_TEST
|
|
select GENERIC_PHY
|
|
default m
|
|
help
|
|
This driver supports configuring of the TI CPSW Port mode depending on
|
|
the Ethernet PHY connected to the CPSW Port.
|