]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: armada8k: Add PHYs support
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 1 Apr 2019 13:12:39 +0000 (15:12 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 17 Jun 2019 11:15:07 +0000 (12:15 +0100)
commitc369b536f8e309691a8ac3f9264941867b4a7155
treec7cd8f44430ba3591cb86f5f5ac66b9304453d43
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
PCI: armada8k: Add PHYs support

Bring PHY support for the Armada8k driver.

The Armada8k IP only supports x1, x2 or x4 link widths. Iterate over
the DT 'phys' entries and configure them one by one. Use
phy_set_mode_ext() to make use of the submode parameter (initially
introduced for Ethernet modes). For PCI configuration, let the submode
be the width (1, 2, 4, etc) so that the PHY driver knows how many
lanes are bundled. Do not error out in case of error for compatibility
reasons.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
drivers/pci/controller/dwc/pcie-armada8k.c