OSDN Git Service

phy: qcom-qmp-pcie: add support for sc8280xp 4-lane PHYs
authorJohan Hovold <johan+linaro@kernel.org>
Sat, 5 Nov 2022 14:59:39 +0000 (15:59 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 10 Nov 2022 07:04:55 +0000 (12:34 +0530)
commit6c37a02b25180350ed7bd199c074a79fe6d16e51
treed5fc98d87805f56cbdbeded0505ef9a58962d8c2
parentd0a846ba28ddb589fc5a5741ae566e19c1034034
phy: qcom-qmp-pcie: add support for sc8280xp 4-lane PHYs

The PCIe2 and PCIe3 controllers and PHYs on SC8280XP can be used in
4-lane mode or as separate controllers and PHYs in 2-lane mode (e.g. as
PCIe2A and PCIe2B).

Add support for fetching the 4-lane configuration from the TCSR and
programming the lane registers of the second port when in 4-lane mode.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20221105145939.20318-17-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/Kconfig
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c