OSDN Git Service

phy: qcom-qmp: Add SM8250 PCIe QMP PHYs
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 27 Oct 2020 17:00:30 +0000 (22:30 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 16 Nov 2020 05:58:01 +0000 (11:28 +0530)
commit6edf7700a9dde8d3e494d1b390b5284329642a70
treee595fa1711b4a6c822a152d2c850be1220db42ee
parent5594b407a48b1fcf6da1ecbfe4a647f2ce3c284a
phy: qcom-qmp: Add SM8250 PCIe QMP PHYs

SM8250 has multiple different PHY versions:
QMP GEN3x1 PHY - 1 lane
QMP GEN3x2 PHY - 2 lanes
QMP Modem PHY - 2 lanes

Add support for these with relevant init sequence. In order to abstract
the init sequence, this commit introduces secondary tables which can
be used to factor out the unique sequence for each PHY while the former
tables can have the common sequence.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20201027170033.8475-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp.c
drivers/phy/qualcomm/phy-qcom-qmp.h