Skip to content

Commit efb05a5

Browse files
Manu Gautamkishon
authored andcommitted
phy: qcom-qmp: Add support for QMP V3 USB3 PHY
QMP V3 USB3 PHY is a DisplayPort (DP) and USB combo PHY with dual RX/TX lanes to support type-c. There is a separate block DP_COM for configuration related to type-c or DP. Add support for dp_com region and secondary rx/tx lanes initialization. Signed-off-by: Manu Gautam <mgautam@codeaurora.org> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
1 parent 8587b22 commit efb05a5

1 file changed

Lines changed: 220 additions & 3 deletions

File tree

‎drivers/phy/qualcomm/phy-qcom-qmp.c‎

Lines changed: 220 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@
4747
/* QPHY_COM_PCS_READY_STATUS bit */
4848
#define PCS_READY BIT(0)
4949

50+
/* QPHY_V3_DP_COM_RESET_OVRD_CTRL register bits */
51+
/* DP PHY soft reset */
52+
#define SW_DPPHY_RESET BIT(0)
53+
/* mux to select DP PHY reset control, 0:HW control, 1: software reset */
54+
#define SW_DPPHY_RESET_MUX BIT(1)
55+
/* USB3 PHY soft reset */
56+
#define SW_USB3PHY_RESET BIT(2)
57+
/* mux to select USB3 PHY reset control, 0:HW control, 1: software reset */
58+
#define SW_USB3PHY_RESET_MUX BIT(3)
59+
60+
/* QPHY_V3_DP_COM_PHY_MODE_CTRL register bits */
61+
#define USB3_MODE BIT(0) /* enables USB3 mode */
62+
#define DP_MODE BIT(1) /* enables DP mode */
63+
64+
5065
#define PHY_INIT_COMPLETE_TIMEOUT 1000
5166
#define POWER_DOWN_DELAY_US_MIN 10
5267
#define POWER_DOWN_DELAY_US_MAX 11
@@ -122,6 +137,12 @@ static const unsigned int usb3phy_regs_layout[] = {
122137
[QPHY_PCS_READY_STATUS] = 0x17c,
123138
};
124139

140+
static const unsigned int qmp_v3_usb3phy_regs_layout[] = {
141+
[QPHY_SW_RESET] = 0x00,
142+
[QPHY_START_CTRL] = 0x08,
143+
[QPHY_PCS_READY_STATUS] = 0x174,
144+
};
145+
125146
static const struct qmp_phy_init_tbl msm8996_pcie_serdes_tbl[] = {
126147
QMP_PHY_INIT_CFG(QSERDES_COM_BIAS_EN_CLKBUFLR_EN, 0x1c),
127148
QMP_PHY_INIT_CFG(QSERDES_COM_CLK_ENABLE1, 0x10),
@@ -350,6 +371,112 @@ static const struct qmp_phy_init_tbl ipq8074_pcie_pcs_tbl[] = {
350371
QMP_PHY_INIT_CFG_L(QPHY_START_CTRL, 0x3),
351372
};
352373

374+
static const struct qmp_phy_init_tbl qmp_v3_usb3_serdes_tbl[] = {
375+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_PLL_IVCO, 0x07),
376+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_SYSCLK_EN_SEL, 0x14),
377+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_BIAS_EN_CLKBUFLR_EN, 0x08),
378+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_CLK_SELECT, 0x30),
379+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_SYS_CLK_CTRL, 0x02),
380+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_RESETSM_CNTRL2, 0x08),
381+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_CMN_CONFIG, 0x16),
382+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_SVS_MODE_CLK_SEL, 0x01),
383+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_HSCLK_SEL, 0x80),
384+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_DEC_START_MODE0, 0x82),
385+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_DIV_FRAC_START1_MODE0, 0xab),
386+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_DIV_FRAC_START2_MODE0, 0xea),
387+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_DIV_FRAC_START3_MODE0, 0x02),
388+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_CP_CTRL_MODE0, 0x06),
389+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_PLL_RCTRL_MODE0, 0x16),
390+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_PLL_CCTRL_MODE0, 0x36),
391+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_INTEGLOOP_GAIN1_MODE0, 0x00),
392+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_INTEGLOOP_GAIN0_MODE0, 0x3f),
393+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_VCO_TUNE2_MODE0, 0x01),
394+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_VCO_TUNE1_MODE0, 0xc9),
395+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_CORECLK_DIV_MODE0, 0x0a),
396+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_LOCK_CMP3_MODE0, 0x00),
397+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_LOCK_CMP2_MODE0, 0x34),
398+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_LOCK_CMP1_MODE0, 0x15),
399+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_LOCK_CMP_EN, 0x04),
400+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_CORE_CLK_EN, 0x00),
401+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_LOCK_CMP_CFG, 0x00),
402+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_VCO_TUNE_MAP, 0x00),
403+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_SYSCLK_BUF_ENABLE, 0x0a),
404+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_SSC_EN_CENTER, 0x01),
405+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_SSC_PER1, 0x31),
406+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_SSC_PER2, 0x01),
407+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_SSC_ADJ_PER1, 0x00),
408+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_SSC_ADJ_PER2, 0x00),
409+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_SSC_STEP_SIZE1, 0x85),
410+
QMP_PHY_INIT_CFG(QSERDES_V3_COM_SSC_STEP_SIZE2, 0x07),
411+
};
412+
413+
static const struct qmp_phy_init_tbl qmp_v3_usb3_tx_tbl[] = {
414+
QMP_PHY_INIT_CFG(QSERDES_V3_TX_HIGHZ_DRVR_EN, 0x10),
415+
QMP_PHY_INIT_CFG(QSERDES_V3_TX_RCV_DETECT_LVL_2, 0x12),
416+
QMP_PHY_INIT_CFG(QSERDES_V3_TX_LANE_MODE_1, 0x16),
417+
QMP_PHY_INIT_CFG(QSERDES_V3_TX_RES_CODE_LANE_OFFSET_RX, 0x09),
418+
QMP_PHY_INIT_CFG(QSERDES_V3_TX_RES_CODE_LANE_OFFSET_TX, 0x06),
419+
};
420+
421+
static const struct qmp_phy_init_tbl qmp_v3_usb3_rx_tbl[] = {
422+
QMP_PHY_INIT_CFG(QSERDES_V3_RX_UCDR_FASTLOCK_FO_GAIN, 0x0b),
423+
QMP_PHY_INIT_CFG(QSERDES_V3_RX_RX_EQU_ADAPTOR_CNTRL2, 0x0f),
424+
QMP_PHY_INIT_CFG(QSERDES_V3_RX_RX_EQU_ADAPTOR_CNTRL3, 0x4e),
425+
QMP_PHY_INIT_CFG(QSERDES_V3_RX_RX_EQU_ADAPTOR_CNTRL4, 0x18),
426+
QMP_PHY_INIT_CFG(QSERDES_V3_RX_RX_EQ_OFFSET_ADAPTOR_CNTRL1, 0x77),
427+
QMP_PHY_INIT_CFG(QSERDES_V3_RX_RX_OFFSET_ADAPTOR_CNTRL2, 0x80),
428+
QMP_PHY_INIT_CFG(QSERDES_V3_RX_SIGDET_CNTRL, 0x03),
429+
QMP_PHY_INIT_CFG(QSERDES_V3_RX_SIGDET_DEGLITCH_CNTRL, 0x16),
430+
QMP_PHY_INIT_CFG(QSERDES_V3_RX_UCDR_SO_SATURATION_AND_ENABLE, 0x75),
431+
};
432+
433+
static const struct qmp_phy_init_tbl qmp_v3_usb3_pcs_tbl[] = {
434+
/* FLL settings */
435+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_FLL_CNTRL2, 0x83),
436+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_FLL_CNT_VAL_L, 0x09),
437+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_FLL_CNT_VAL_H_TOL, 0xa2),
438+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_FLL_MAN_CODE, 0x40),
439+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_FLL_CNTRL1, 0x02),
440+
441+
/* Lock Det settings */
442+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_LOCK_DETECT_CONFIG1, 0xd1),
443+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_LOCK_DETECT_CONFIG2, 0x1f),
444+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_LOCK_DETECT_CONFIG3, 0x47),
445+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_POWER_STATE_CONFIG2, 0x1b),
446+
447+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_RX_SIGDET_LVL, 0xba),
448+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXMGN_V0, 0x9f),
449+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXMGN_V1, 0x9f),
450+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXMGN_V2, 0xb7),
451+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXMGN_V3, 0x4e),
452+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXMGN_V4, 0x65),
453+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXMGN_LS, 0x6b),
454+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M6DB_V0, 0x15),
455+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M3P5DB_V0, 0x0d),
456+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M6DB_V1, 0x15),
457+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M3P5DB_V1, 0x0d),
458+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M6DB_V2, 0x15),
459+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M3P5DB_V2, 0x0d),
460+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M6DB_V3, 0x15),
461+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M3P5DB_V3, 0x1d),
462+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M6DB_V4, 0x15),
463+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M3P5DB_V4, 0x0d),
464+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M6DB_LS, 0x15),
465+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TXDEEMPH_M3P5DB_LS, 0x0d),
466+
467+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_RATE_SLEW_CNTRL, 0x02),
468+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_PWRUP_RESET_DLY_TIME_AUXCLK, 0x04),
469+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_TSYNC_RSYNC_TIME, 0x44),
470+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_PWRUP_RESET_DLY_TIME_AUXCLK, 0x04),
471+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_RCVR_DTCT_DLY_P1U2_L, 0xe7),
472+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_RCVR_DTCT_DLY_P1U2_H, 0x03),
473+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_RCVR_DTCT_DLY_U3_L, 0x40),
474+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_RCVR_DTCT_DLY_U3_H, 0x00),
475+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_RXEQTRAINING_WAIT_TIME, 0x75),
476+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_LFPS_TX_ECSTART_EQTLOCK, 0x86),
477+
QMP_PHY_INIT_CFG(QPHY_V3_PCS_RXEQTRAINING_RUN_TIME, 0x13),
478+
};
479+
353480
/* struct qmp_phy_cfg - per-PHY initialization config */
354481
struct qmp_phy_cfg {
355482
/* phy-type - PCIE/UFS/USB */
@@ -394,6 +521,12 @@ struct qmp_phy_cfg {
394521
/* power_down delay in usec */
395522
int pwrdn_delay_min;
396523
int pwrdn_delay_max;
524+
525+
/* true, if PHY has a separate DP_COM control block */
526+
bool has_phy_dp_com_ctrl;
527+
/* Register offset of secondary tx/rx lanes for USB DP combo PHY */
528+
unsigned int tx_b_lane_offset;
529+
unsigned int rx_b_lane_offset;
397530
};
398531

399532
/**
@@ -424,6 +557,7 @@ struct qmp_phy {
424557
*
425558
* @dev: device
426559
* @serdes: iomapped memory space for phy's serdes
560+
* @dp_com: iomapped memory space for phy's dp_com control block
427561
*
428562
* @clks: array of clocks required by phy
429563
* @resets: array of resets required by phy
@@ -437,6 +571,7 @@ struct qmp_phy {
437571
struct qcom_qmp {
438572
struct device *dev;
439573
void __iomem *serdes;
574+
void __iomem *dp_com;
440575

441576
struct clk_bulk_data *clks;
442577
struct reset_control **resets;
@@ -478,6 +613,10 @@ static const char * const msm8996_phy_clk_l[] = {
478613
"aux", "cfg_ahb", "ref",
479614
};
480615

616+
static const char * const qmp_v3_phy_clk_l[] = {
617+
"aux", "cfg_ahb", "ref", "com_aux",
618+
};
619+
481620
/* list of resets */
482621
static const char * const msm8996_pciephy_reset_l[] = {
483622
"phy", "common", "cfg",
@@ -584,6 +723,38 @@ static const struct qmp_phy_cfg ipq8074_pciephy_cfg = {
584723
.pwrdn_delay_max = 1005, /* us */
585724
};
586725

726+
static const struct qmp_phy_cfg qmp_v3_usb3phy_cfg = {
727+
.type = PHY_TYPE_USB3,
728+
.nlanes = 1,
729+
730+
.serdes_tbl = qmp_v3_usb3_serdes_tbl,
731+
.serdes_tbl_num = ARRAY_SIZE(qmp_v3_usb3_serdes_tbl),
732+
.tx_tbl = qmp_v3_usb3_tx_tbl,
733+
.tx_tbl_num = ARRAY_SIZE(qmp_v3_usb3_tx_tbl),
734+
.rx_tbl = qmp_v3_usb3_rx_tbl,
735+
.rx_tbl_num = ARRAY_SIZE(qmp_v3_usb3_rx_tbl),
736+
.pcs_tbl = qmp_v3_usb3_pcs_tbl,
737+
.pcs_tbl_num = ARRAY_SIZE(qmp_v3_usb3_pcs_tbl),
738+
.clk_list = qmp_v3_phy_clk_l,
739+
.num_clks = ARRAY_SIZE(qmp_v3_phy_clk_l),
740+
.reset_list = msm8996_usb3phy_reset_l,
741+
.num_resets = ARRAY_SIZE(msm8996_usb3phy_reset_l),
742+
.vreg_list = msm8996_phy_vreg_l,
743+
.num_vregs = ARRAY_SIZE(msm8996_phy_vreg_l),
744+
.regs = qmp_v3_usb3phy_regs_layout,
745+
746+
.start_ctrl = SERDES_START | PCS_START,
747+
.pwrdn_ctrl = SW_PWRDN,
748+
.mask_pcs_ready = PHYSTATUS,
749+
750+
.pwrdn_delay_min = POWER_DOWN_DELAY_US_MIN,
751+
.pwrdn_delay_max = POWER_DOWN_DELAY_US_MAX,
752+
753+
.has_phy_dp_com_ctrl = true,
754+
.tx_b_lane_offset = 0x400,
755+
.rx_b_lane_offset = 0x400,
756+
};
757+
587758
static void qcom_qmp_phy_configure(void __iomem *base,
588759
const unsigned int *regs,
589760
const struct qmp_phy_init_tbl tbl[],
@@ -620,6 +791,7 @@ static int qcom_qmp_phy_com_init(struct qcom_qmp *qmp)
620791
{
621792
const struct qmp_phy_cfg *cfg = qmp->cfg;
622793
void __iomem *serdes = qmp->serdes;
794+
void __iomem *dp_com = qmp->dp_com;
623795
int ret, i;
624796

625797
mutex_lock(&qmp->phy_mutex);
@@ -663,6 +835,23 @@ static int qcom_qmp_phy_com_init(struct qcom_qmp *qmp)
663835
qphy_setbits(serdes, cfg->regs[QPHY_COM_POWER_DOWN_CONTROL],
664836
SW_PWRDN);
665837

838+
if (cfg->has_phy_dp_com_ctrl) {
839+
qphy_setbits(dp_com, QPHY_V3_DP_COM_POWER_DOWN_CTRL,
840+
SW_PWRDN);
841+
/* override hardware control for reset of qmp phy */
842+
qphy_setbits(dp_com, QPHY_V3_DP_COM_RESET_OVRD_CTRL,
843+
SW_DPPHY_RESET_MUX | SW_DPPHY_RESET |
844+
SW_USB3PHY_RESET_MUX | SW_USB3PHY_RESET);
845+
846+
qphy_setbits(dp_com, QPHY_V3_DP_COM_PHY_MODE_CTRL,
847+
USB3_MODE | DP_MODE);
848+
849+
/* bring both QMP USB and QMP DP PHYs PCS block out of reset */
850+
qphy_clrbits(dp_com, QPHY_V3_DP_COM_RESET_OVRD_CTRL,
851+
SW_DPPHY_RESET_MUX | SW_DPPHY_RESET |
852+
SW_USB3PHY_RESET_MUX | SW_USB3PHY_RESET);
853+
}
854+
666855
/* Serdes configuration */
667856
qcom_qmp_phy_configure(serdes, cfg->regs, cfg->serdes_tbl,
668857
cfg->serdes_tbl_num);
@@ -746,6 +935,7 @@ static int qcom_qmp_phy_init(struct phy *phy)
746935
void __iomem *tx = qphy->tx;
747936
void __iomem *rx = qphy->rx;
748937
void __iomem *pcs = qphy->pcs;
938+
void __iomem *dp_com = qmp->dp_com;
749939
void __iomem *status;
750940
unsigned int mask, val;
751941
int ret;
@@ -767,7 +957,16 @@ static int qcom_qmp_phy_init(struct phy *phy)
767957

768958
/* Tx, Rx, and PCS configurations */
769959
qcom_qmp_phy_configure(tx, cfg->regs, cfg->tx_tbl, cfg->tx_tbl_num);
960+
/* Configuration for other LANE for USB-DP combo PHY */
961+
if (cfg->has_phy_dp_com_ctrl)
962+
qcom_qmp_phy_configure(tx + cfg->tx_b_lane_offset, cfg->regs,
963+
cfg->tx_tbl, cfg->tx_tbl_num);
964+
770965
qcom_qmp_phy_configure(rx, cfg->regs, cfg->rx_tbl, cfg->rx_tbl_num);
966+
if (cfg->has_phy_dp_com_ctrl)
967+
qcom_qmp_phy_configure(rx + cfg->rx_b_lane_offset, cfg->regs,
968+
cfg->rx_tbl, cfg->rx_tbl_num);
969+
771970
qcom_qmp_phy_configure(pcs, cfg->regs, cfg->pcs_tbl, cfg->pcs_tbl_num);
772971

773972
/*
@@ -781,6 +980,8 @@ static int qcom_qmp_phy_init(struct phy *phy)
781980

782981
/* Pull PHY out of reset state */
783982
qphy_clrbits(pcs, cfg->regs[QPHY_SW_RESET], SW_RESET);
983+
if (cfg->has_phy_dp_com_ctrl)
984+
qphy_clrbits(dp_com, QPHY_V3_DP_COM_SW_RESET, SW_RESET);
784985

785986
/* start SerDes and Phy-Coding-Sublayer */
786987
qphy_setbits(pcs, cfg->regs[QPHY_START_CTRL], cfg->start_ctrl);
@@ -1031,6 +1232,9 @@ static const struct of_device_id qcom_qmp_phy_of_match_table[] = {
10311232
}, {
10321233
.compatible = "qcom,ipq8074-qmp-pcie-phy",
10331234
.data = &ipq8074_pciephy_cfg,
1235+
}, {
1236+
.compatible = "qcom,qmp-v3-usb3-phy",
1237+
.data = &qmp_v3_usb3phy_cfg,
10341238
},
10351239
{ },
10361240
};
@@ -1054,6 +1258,11 @@ static int qcom_qmp_phy_probe(struct platform_device *pdev)
10541258
qmp->dev = dev;
10551259
dev_set_drvdata(dev, qmp);
10561260

1261+
/* Get the specific init parameters of QMP phy */
1262+
qmp->cfg = of_device_get_match_data(dev);
1263+
if (!qmp->cfg)
1264+
return -EINVAL;
1265+
10571266
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
10581267
base = devm_ioremap_resource(dev, res);
10591268
if (IS_ERR(base))
@@ -1062,10 +1271,18 @@ static int qcom_qmp_phy_probe(struct platform_device *pdev)
10621271
/* per PHY serdes; usually located at base address */
10631272
qmp->serdes = base;
10641273

1065-
mutex_init(&qmp->phy_mutex);
1274+
/* per PHY dp_com; if PHY has dp_com control block */
1275+
if (qmp->cfg->has_phy_dp_com_ctrl) {
1276+
res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
1277+
"dp_com");
1278+
base = devm_ioremap_resource(dev, res);
1279+
if (IS_ERR(base))
1280+
return PTR_ERR(base);
10661281

1067-
/* Get the specific init parameters of QMP phy */
1068-
qmp->cfg = of_device_get_match_data(dev);
1282+
qmp->dp_com = base;
1283+
}
1284+
1285+
mutex_init(&qmp->phy_mutex);
10691286

10701287
ret = qcom_qmp_phy_clk_init(dev);
10711288
if (ret)

0 commit comments

Comments
 (0)