Skip to content
Snippets Groups Projects
Commit 2907c35a authored by Martyn Welch's avatar Martyn Welch
Browse files

Pull in change done in vendor BSP. The vendor BSP does a number of checks not...

Pull in change done in vendor BSP. The vendor BSP does a number of checks not repeated here, might be needed for compatibility with other devices...
parent a905d4a8
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
#define DPHY_PMA_CMN(reg) (reg)
#define DPHY_PCS(reg) (0xb00 + (reg))
#define DPHY_ISO(reg) (0xc00 + (reg))
#define DPHY_WRAP(reg) (0x1000 + (reg))
#define DPHY_CMN_SSM DPHY_PMA_CMN(0x20)
#define DPHY_CMN_RX_MODE_EN BIT(10)
......@@ -33,6 +34,9 @@
#define DPHY_POWER_ISLAND_EN_CLK DPHY_PCS(0xc)
#define DPHY_POWER_ISLAND_EN_CLK_VAL 0xaa
#define DPHY_LANE DPHY_WRAP(0x0)
#define DPHY_LANE_RESET_CMN_EN BIT(23)
#define DPHY_ISO_CL_CTRL_L DPHY_ISO(0x10)
#define DPHY_ISO_DL_CTRL_L0 DPHY_ISO(0x14)
#define DPHY_ISO_DL_CTRL_L1 DPHY_ISO(0x20)
......@@ -149,6 +153,9 @@ static int cdns_dphy_rx_configure(struct phy *phy,
unsigned int reg, lanes = opts->mipi_dphy.lanes;
int band_ctrl, ret;
reg = DPHY_LANE_RESET_CMN_EN;
writel(reg, dphy->regs + DPHY_LANE);
/* Data lanes. Minimum one lane is mandatory. */
if (lanes < DPHY_LANES_MIN || lanes > DPHY_LANES_MAX)
return -EINVAL;
......
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