fix(drivers/marvell/comphy-3700): configure phy selector also for PCIe

The mvebu_a3700_comphy_pcie_power_on() function does not configure the
PHY selector explicitly, it relies on the register default value.

Configure the PHY selector just in case someone changed the default
value.

Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I54048b4bb7a5eced36f7fe6592ebe108f978fff0
This commit is contained in:
Pali Rohár 2021-10-12 14:53:25 +02:00 committed by Marek Behun
parent 55eeb7b08f
commit 0f3a122109
1 changed files with 6 additions and 0 deletions

View File

@ -815,6 +815,12 @@ static int mvebu_a3700_comphy_pcie_power_on(uint8_t comphy_index,
debug_enter();
/* Configure phy selector for PCIe */
ret = mvebu_a3700_comphy_set_phy_selector(comphy_index, comphy_mode);
if (ret) {
return ret;
}
/* 1. Enable max PLL. */
reg_set16(LANE_CFG1_ADDR(PCIE) + COMPHY_SD_ADDR,
USE_MAX_PLL_RATE_EN, USE_MAX_PLL_RATE_EN);