PCI: mobiveil: Introduce a new structure mobiveil_root_port
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Thu, 13 Feb 2020 04:06:32 +0000 (12:06 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 21 Feb 2020 11:31:59 +0000 (11:31 +0000)
commit1f442218d657b1a20900f09ae1fc269b69b3de70
tree47d44922ecf49da91eda5e97ced00d64aa834baf
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
PCI: mobiveil: Introduce a new structure mobiveil_root_port

The Mobiveil PCIe controller can work in either Root Complex
mode or Endpoint mode.

Introduce a new structure mobiveil_root_port and abstract the
RC related members into it so that the code can be used by both
modes.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrew Murray <amurray@thegoodpenguin.co.uk>
drivers/pci/controller/pcie-mobiveil.c