PCI: amlogic: meson: Add support for G12A
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 16 Sep 2019 12:50:19 +0000 (14:50 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 15 Oct 2019 13:57:32 +0000 (14:57 +0100)
commit4ff9f68f8378baa8027426bb8a8853ae3f99ad6c
tree46f66bedc025f24c6f50fad6cbc0a44f0c2f734f
parenteacaf7dcf08eb062a1059c6c115fa3fced3374ae
PCI: amlogic: meson: Add support for G12A

Add support for the Amlogic G12A SoC using a separate shared PHY.

This adds support for fetching a PHY phandle and call the PHY init,
reset and power on/off calls instead of writing in the PHY register or
toggling the PHY reset line.

The MIPI clock and the PHY memory resource are only required for the
Amlogic AXG SoC PCIe PHY setup, thus these elements are ignored for
the Amlogic G12A having a separate shared PHY.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
drivers/pci/controller/dwc/pci-meson.c