summaryrefslogtreecommitdiff
path: root/drivers/phy/cadence/phy-cadence-torrent.c
diff options
context:
space:
mode:
authorAlan Douglas <adouglas@cadence.com>2021-07-21 18:58:36 +0300
committerLokesh Vutla <lokeshvutla@ti.com>2021-07-27 08:27:12 +0300
commit39b823381d9d27537c032010bdaf005aa60df9a3 (patch)
treebec45f0d66be0560b417b9a7283801de01c90b2a /drivers/phy/cadence/phy-cadence-torrent.c
parent2b0f7dee5fcd71de11faf2d096d22b241ce920d7 (diff)
downloadu-boot-39b823381d9d27537c032010bdaf005aa60df9a3.tar.xz
phy: cadence: Add driver for Sierra PHY
Add a Sierra PHY driver with PCIe and USB support. This driver is a port from the mainline linux driver. The PHY has multiple lanes, which can be configured into groups, and a generic PHY device is created for each group. There are two resets controlling the overall PHY block, one to enable the APB interface for programming registers, and another to enable the PHY itself. Additionally there are resets for each PHY lane. The PHY can be configured in hardware to read register settings from ROM, or they can be written by the driver. The sequence of operation on startup is to enable the APB bus, write the PHY registers (if required) for each lane group, and then enable the PHY. Each group of lanes can then be individually controlled using the power_on()/ power_off() function for that generic PHY One difference with the linux driver is that the PHY is always reset after it is powered-on. This is because role switching is not supported in u-boot and the cable orientation is handled by the PHY reset. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Signed-off-by: Alan Douglas <adouglas@cadence.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Link: https://lore.kernel.org/r/20210721155849.20994-8-kishon@ti.com
Diffstat (limited to 'drivers/phy/cadence/phy-cadence-torrent.c')
0 files changed, 0 insertions, 0 deletions