mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 18:44:22 +00:00
drivers: marvell: comphy-a3700: Set TXDCLK_2X_SEL bit during PCIe initialization
Marvell Armada 3700 Functional Specifications, section 52.2 PCIe Link Initialization says that TXDCLK_2X_SEL bit needs to be enabled for PCIe Root Complex mode. Both U-Boot and Linux kernel support only Root Complex mode. Set this bit. Signed-off-by: Pali Rohár <pali@kernel.org> Change-Id: Id2a538c379b911b62597f9463b4842b7b5c24df7
This commit is contained in:
parent
ccec1bd5ca
commit
40d08192aa
2 changed files with 2 additions and 1 deletions
|
@ -835,7 +835,7 @@ static int mvebu_a3700_comphy_pcie_power_on(uint8_t comphy_index,
|
|||
|
||||
/* 6. Enable the output of 100M/125M/500M clock */
|
||||
reg_set16(MISC_REG0_ADDR(PCIE) + COMPHY_SD_ADDR,
|
||||
MISC_REG0_DEFAULT_VALUE | CLK500M_EN | CLK100M_125M_EN,
|
||||
MISC_REG0_DEFAULT_VALUE | CLK500M_EN | TXDCLK_2X_SEL | CLK100M_125M_EN,
|
||||
REG_16_BIT_MASK);
|
||||
|
||||
/*
|
||||
|
|
|
@ -104,6 +104,7 @@ enum {
|
|||
#define COMPHY_MISC_REG0_ADDR 0x4F
|
||||
#define MISC_REG0_ADDR(unit) (COMPHY_MISC_REG0_ADDR * PHY_SHFT(unit))
|
||||
#define CLK100M_125M_EN BIT(4)
|
||||
#define TXDCLK_2X_SEL BIT(6)
|
||||
#define CLK500M_EN BIT(7)
|
||||
#define PHY_REF_CLK_SEL BIT(10)
|
||||
#define MISC_REG0_DEFAULT_VALUE 0xA00D
|
||||
|
|
Loading…
Add table
Reference in a new issue