]> git.baikalelectronics.ru Git - kernel.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)
commit5cf302348324a2f0dcb1d6d66de48c1a16602e2a
treec7cd8f44430ba3591cb86f5f5ac66b9304453d43
parent49250288820449e26abffc1305ba221bd05ce90d
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