]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdaf6b40301b39ab88b63ca95ed5c8cd47796bd6a
tree47d44922ecf49da91eda5e97ced00d64aa834baf
parent900abd43b6d837ba70928a9ee9599ba3be1d2fb6
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