phy: ti: j721e-wiz: Add support to enable LN23 Type-C swap
authorSinthu Raja <sinthu.raja@ti.com>
Fri, 13 Jan 2023 15:06:15 +0000 (20:36 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 18 Jan 2023 17:15:35 +0000 (22:45 +0530)
commit494de1dd8353de2cefeb692947c52b5ebc14a4d1
tree4182bc8131ac33bcdc5ae1ae04898ec093c18b2e
parent9a8a54b9a95554554de3f8269b34d3b78fa3c9be
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>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20230113150615.19375-3-sinthu.raja@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-j721e-wiz.c