OSDN Git Service

phy: freescale: imx8m-pcie: Refine i.MX8MM PCIe PHY driver
authorRichard Zhu <hongxing.zhu@nxp.com>
Thu, 13 Oct 2022 01:47:01 +0000 (09:47 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 17 Oct 2022 05:31:02 +0000 (11:01 +0530)
commitca679c49c4463595499a053ba94328acb574fffa
tree84d82c50fec51f33d474d44c2346bd439c9cdd74
parente9e7dca53bf5a5bddf70c87157660a29cdcdd2d8
phy: freescale: imx8m-pcie: Refine i.MX8MM PCIe PHY driver

To make it more flexible and easy to expand. Refine i.MX8MM PCIe PHY
driver.
- Use gpr compatible string to avoid the codes duplications when add
  another platform PCIe PHY support.
- Re-arrange the codes to let it more flexible and easy to expand.
No functional change. Re-arrange the TX tuning, since internal registers
can be wrote through APB interface before assertion of CMN_RST.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Marek Vasut <marex@denx.de>
Tested-by: Richard Leitner <richard.leitner@skidata.com>
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.kernel.org/r/1665625622-20551-4-git-send-email-hongxing.zhu@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/freescale/phy-fsl-imx8m-pcie.c