Commit f2b2fcf6 authored by Bjorn Helgaas's avatar Bjorn Helgaas
Browse files

Merge branch 'pci/controller/dwc'

- Add support for x16 in devicetree 'num-lanes' property (Konrad Dybcio)

* pci/controller/dwc:
  PCI: dwc: Support 16-lane operation
parents df1d435b cef73007
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -774,6 +774,9 @@ static void dw_pcie_link_set_max_link_width(struct dw_pcie *pci, u32 num_lanes)
	case 8:
		plc |= PORT_LINK_MODE_8_LANES;
		break;
	case 16:
		plc |= PORT_LINK_MODE_16_LANES;
		break;
	default:
		dev_err(pci->dev, "num-lanes %u: invalid value\n", num_lanes);
		return;
+1 −0
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@
#define PORT_LINK_MODE_2_LANES		PORT_LINK_MODE(0x3)
#define PORT_LINK_MODE_4_LANES		PORT_LINK_MODE(0x7)
#define PORT_LINK_MODE_8_LANES		PORT_LINK_MODE(0xf)
#define PORT_LINK_MODE_16_LANES		PORT_LINK_MODE(0x1f)

#define PCIE_PORT_LANE_SKEW		0x714
#define PORT_LANE_SKEW_INSERT_MASK	GENMASK(23, 0)