PCI: rcar: Add R-Car gen3 PHY support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 3 May 2018 19:40:54 +0000 (22:40 +0300)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 4 May 2018 09:21:15 +0000 (10:21 +0100)
commit517ca93a7159eb94eeef829f6ca036456050115c
tree4f0cd8ae38bd60274c06c901eced12e778804b0e
parentbd7b6d147a14c308a0227852334e01723451c73c
PCI: rcar: Add R-Car gen3 PHY support

On R-Car gen3 SoCs the PCIe PHY has its own register region, thus we
need to add the corresponding code in rcar_pcie_hw_init_gen3() and call
devm_phy_optional_get() at the driver's probing time, so that the
existing R-Car gen3 device trees (not having a PHY node) would still
work (we only need to power up the PHY on R-Car V3H).

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/pci/rcar-pci.txt
drivers/pci/host/pcie-rcar.c