Skip to content
Snippets Groups Projects
Commit 4adb16b2 authored by This contributor prefers not to receive mails's avatar This contributor prefers not to receive mails Committed by Stefan Roese
Browse files

phy: marvell: 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.

Same change was included in TF-A project:
https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/9408



Signed-off-by: default avatarPali Rohár <pali@kernel.org>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent 646a1522
No related branches found
No related tags found
No related merge requests found
...@@ -200,7 +200,7 @@ static int comphy_pcie_power_up(u32 speed, u32 invert) ...@@ -200,7 +200,7 @@ static int comphy_pcie_power_up(u32 speed, u32 invert)
* 6. Enable the output of 100M/125M/500M clock * 6. Enable the output of 100M/125M/500M clock
*/ */
reg_set16(phy_addr(PCIE, MISC_REG0), reg_set16(phy_addr(PCIE, MISC_REG0),
0xA00D | rb_clk500m_en | rb_clk100m_125m_en, 0xFFFF); 0xA00D | rb_clk500m_en | rb_txdclk_2x_sel | rb_clk100m_125m_en, 0xFFFF);
/* /*
* 7. Enable TX * 7. Enable TX
......
...@@ -120,6 +120,7 @@ static inline void __iomem *phy_addr(enum phy_unit unit, u32 addr) ...@@ -120,6 +120,7 @@ static inline void __iomem *phy_addr(enum phy_unit unit, u32 addr)
#define MISC_REG0 0x4f #define MISC_REG0 0x4f
#define rb_clk100m_125m_en BIT(4) #define rb_clk100m_125m_en BIT(4)
#define rb_txdclk_2x_sel BIT(6)
#define rb_clk500m_en BIT(7) #define rb_clk500m_en BIT(7)
#define rb_ref_clk_sel BIT(10) #define rb_ref_clk_sel BIT(10)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment