phy: ti: j721e-wiz: Add support to enable LN23 Type-C swap
authorSinthu Raja <sinthu.raja@ti.com>
Mon, 13 Mar 2023 12:42:24 +0000 (18:12 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 29 Mar 2023 17:30:29 +0000 (13:30 -0400)
commit3d0f2e37c57b0d2f60e0b985d7006220d94bd9b0
tree51d7256d47755ab9300521bc1628d4016dbe4fe6
parent75b6cd97dd41b11c212fccf545e346c38248f8a2
phy: ti: j721e-wiz: Add support to enable LN23 Type-C swap

The WIZ acts as a wrapper for SerDes and has Lanes 0 and 2 reserved
for USB for type-C lane swap if Lane 1 and Lane 3 are linked to the
USB PHY that is integrated into the SerDes IP. The WIZ control register
has to be configured to support this lane swap feature.

The support for swapping lanes 2 and 3 is missing and therefore
add support to configure the control register to swap between
lanes 2 and 3 if PHY type is USB.

Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
drivers/phy/ti/phy-j721e-wiz.c