Skip to content

Commit 8df093f

Browse files
AnsuelLorenzo Pieralisi
authored andcommitted
PCI: qcom: Add ipq8064 rev2 variant
Ipq8064-v2 have tx term offset set to 0. Introduce this variant to permit different offset based on the revision. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ansuel Smith <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Stanimir Varbanov <[email protected]>
1 parent de3c4bf commit 8df093f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/pci/controller/dwc/pcie-qcom.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ static int qcom_pcie_init_2_1_0(struct qcom_pcie *pcie)
366366
val &= ~BIT(0);
367367
writel(val, pcie->parf + PCIE20_PARF_PHY_CTRL);
368368

369-
if (of_device_is_compatible(node, "qcom,pcie-ipq8064")) {
369+
if (of_device_is_compatible(node, "qcom,pcie-ipq8064") ||
370+
of_device_is_compatible(node, "qcom,pcie-ipq8064-v2")) {
370371
writel(PCS_DEEMPH_TX_DEEMPH_GEN1(24) |
371372
PCS_DEEMPH_TX_DEEMPH_GEN2_3_5DB(24) |
372373
PCS_DEEMPH_TX_DEEMPH_GEN2_6DB(34),
@@ -1464,6 +1465,7 @@ static int qcom_pcie_probe(struct platform_device *pdev)
14641465
static const struct of_device_id qcom_pcie_match[] = {
14651466
{ .compatible = "qcom,pcie-apq8084", .data = &ops_1_0_0 },
14661467
{ .compatible = "qcom,pcie-ipq8064", .data = &ops_2_1_0 },
1468+
{ .compatible = "qcom,pcie-ipq8064-v2", .data = &ops_2_1_0 },
14671469
{ .compatible = "qcom,pcie-apq8064", .data = &ops_2_1_0 },
14681470
{ .compatible = "qcom,pcie-msm8996", .data = &ops_2_3_2 },
14691471
{ .compatible = "qcom,pcie-ipq8074", .data = &ops_2_3_3 },

0 commit comments

Comments
 (0)