mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 10:04:26 +00:00
refactor(drivers/marvell/comphy-3700): rename Reset and Clock Control register constants
The register at offset 0x1C1 is called Reset and Clock Control in functional specification, but we use constant name GLOB_PHY_CTRL0. Rename it to RST_CLK_CTRL instead. Signed-off-by: Marek Behún <marek.behun@nic.cz> Change-Id: I5dac8913bd0686d4f5bd74b91cb7d07ba06df72b
This commit is contained in:
parent
6eb043791e
commit
6a14ac780f
2 changed files with 4 additions and 4 deletions
|
@ -776,7 +776,7 @@ static int mvebu_a3700_comphy_usb3_power_on(uint8_t comphy_index,
|
|||
* 16. Release SW reset
|
||||
*/
|
||||
data = MODE_CORE_CLK_FREQ_SEL | MODE_PIPE_WIDTH_32 | MODE_REFDIV_BY_4;
|
||||
usb3_reg_set(reg_base, COMPHY_GLOB_PHY_CTRL0, data, REG_16_BIT_MASK);
|
||||
usb3_reg_set(reg_base, COMPHY_RST_CLK_CTRL, data, REG_16_BIT_MASK);
|
||||
|
||||
/* Wait for > 55 us to allow PCLK be enabled */
|
||||
udelay(PLL_SET_DELAY_US);
|
||||
|
@ -885,7 +885,7 @@ static int mvebu_a3700_comphy_pcie_power_on(uint8_t comphy_index,
|
|||
/* 11. Release SW reset */
|
||||
data = MODE_CORE_CLK_FREQ_SEL | MODE_PIPE_WIDTH_32;
|
||||
mask = data | SOFT_RESET | MODE_REFDIV_MASK;
|
||||
reg_set16(GLOB_PHY_CTRL0_ADDR(PCIE) + COMPHY_SD_ADDR, data, mask);
|
||||
reg_set16(RST_CLK_CTRL_ADDR(PCIE) + COMPHY_SD_ADDR, data, mask);
|
||||
|
||||
/* Wait for > 55 us to allow PCLK be enabled */
|
||||
udelay(PLL_SET_DELAY_US);
|
||||
|
|
|
@ -162,8 +162,8 @@ enum {
|
|||
#define LANE_CFG4_ADDR(unit) (COMPHY_LANE_CFG4 * PHY_SHFT(unit))
|
||||
#define SPREAD_SPECTRUM_CLK_EN BIT(7)
|
||||
|
||||
#define COMPHY_GLOB_PHY_CTRL0 0x1C1
|
||||
#define GLOB_PHY_CTRL0_ADDR(unit) (COMPHY_GLOB_PHY_CTRL0 * PHY_SHFT(unit))
|
||||
#define COMPHY_RST_CLK_CTRL 0x1C1
|
||||
#define RST_CLK_CTRL_ADDR(unit) (COMPHY_RST_CLK_CTRL * PHY_SHFT(unit))
|
||||
#define SOFT_RESET BIT(0)
|
||||
#define MODE_CORE_CLK_FREQ_SEL BIT(9)
|
||||
#define MODE_PIPE_WIDTH_32 BIT(3)
|
||||
|
|
Loading…
Add table
Reference in a new issue