mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
phy: phy-rockchip-snps-pcie3: Fix PMA output clamp mode
PMA output clamp mode should be configured. Change-Id: I3f622d8dbde00b7f91caf9ba1c3868d6f9ad8d3e Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#define GRF_PCIE30PHY_CON1 0x4
|
||||
#define GRF_PCIE30PHY_CON6 0x18
|
||||
#define GRF_PCIE30PHY_CON9 0x24
|
||||
|
||||
struct rockchip_p3phy_priv {
|
||||
void __iomem *mmio;
|
||||
@@ -78,6 +79,9 @@ static int rochchip_p3phy_init(struct phy *phy)
|
||||
reset_control_assert(priv->p30phy);
|
||||
udelay(1);
|
||||
|
||||
/* Deassert PCIe PMA output clamp mode */
|
||||
regmap_write(priv->phy_grf, GRF_PCIE30PHY_CON9,
|
||||
(0x1 << 15) | (0x1 << 31));
|
||||
/* Set bifurcation if needed, and it doesn't care RC/EP */
|
||||
if (priv->is_bifurcation) {
|
||||
regmap_write(priv->phy_grf, GRF_PCIE30PHY_CON6,
|
||||
|
||||
Reference in New Issue
Block a user