phy: qcom: qmp-usbc: add support for the Type-C handling
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 13 Jan 2024 20:55:55 +0000 (22:55 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 23 Jan 2024 14:06:55 +0000 (19:36 +0530)
commitdfdaba27b4660ec26de955cf4459499ddb005e2d
tree75ba957a5d2de4c3b7568bcf7a5819d0c0919c31
parent52cfdc9c6c3306f0bda4f217396f508d3f5459fb
phy: qcom: qmp-usbc: add support for the Type-C handling

The USB-C PHYs on the msm8998, QCM2290 and SM6115 platforms use special
register to control which lanes of the Type-C port are used for the
SuperSpeed USB connection. Mimic the qmp-combo driver and handle this
register.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240113-pmi632-typec-v2-12-182d9aa0a5b3@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c