mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00
refactor(drivers/marvell/comphy-3700): rename PHY_GEN_USB3_5G to PHY_GEN_MAX_USB3_5G
The register name for the value PHY_GEN_USB3_5G is PHY_GEN_MAX. We already define the mask constant as PHY_GEN_MAX_MASK. Thus also the value name should be prefixed with PHY_GEN_MAX_. Signed-off-by: Marek Behún <marek.behun@nic.cz> Change-Id: Ibf72a66d2e65e240ed2cdbc3a301dbd793e2cb34
This commit is contained in:
parent
4c995d2d1b
commit
669d3dc5ea
2 changed files with 2 additions and 2 deletions
|
@ -764,7 +764,7 @@ static int mvebu_a3700_comphy_usb3_power_on(uint8_t comphy_index,
|
|||
/*
|
||||
* 14. Set max speed generation to USB3.0 5Gbps
|
||||
*/
|
||||
usb3_reg_set(reg_base, COMPHY_SYNC_MASK_GEN_REG, PHY_GEN_USB3_5G,
|
||||
usb3_reg_set(reg_base, COMPHY_SYNC_MASK_GEN_REG, PHY_GEN_MAX_USB3_5G,
|
||||
PHY_GEN_MAX_MASK);
|
||||
|
||||
/*
|
||||
|
|
|
@ -94,7 +94,7 @@ enum {
|
|||
#define COMPHY_SYNC_MASK_GEN_REG 0x25
|
||||
#define PHY_GEN_MAX_OFFSET 10
|
||||
#define PHY_GEN_MAX_MASK (3 << PHY_GEN_MAX_OFFSET)
|
||||
#define PHY_GEN_USB3_5G (1 << PHY_GEN_MAX_OFFSET)
|
||||
#define PHY_GEN_MAX_USB3_5G (1 << PHY_GEN_MAX_OFFSET)
|
||||
|
||||
#define COMPHY_ISOLATION_CTRL_REG 0x26
|
||||
#define ISOLATION_CTRL_REG_ADDR(unit) (COMPHY_ISOLATION_CTRL_REG * \
|
||||
|
|
Loading…
Add table
Reference in a new issue