mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
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:
parent
55eeb7b08f
commit
0f3a122109
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue