OSDN Git Service

PCI: uniphier-ep: Add SoC data structure
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Thu, 10 Feb 2022 08:09:55 +0000 (17:09 +0900)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 11 Feb 2022 16:26:21 +0000 (16:26 +0000)
commitd41584ae86169445b143bea081c43ca1587b6e46
treeedc60e0e11f764bae434941f54ab04d3c918bb2f
parentf28b24042b525c9dd3d102d3152c0eb65e90b974
PCI: uniphier-ep: Add SoC data structure

Define SoC data structure that includes pci_epc_features, SoC-dependent
callback functions and flags to distinguish the behavior of each SoC.
The callback functions define init() to initialize the controller and
wait() to wait until initialization is completed.

Rename uniphier_pcie_init_ep() to uniphier_pcie_pro5_init_ep() for
initializing PCIe controller implemented in Pro5 SoC. And Pro5 SoC
doesn't have wait() function.

Link: https://lore.kernel.org/r/1644480596-20037-3-git-send-email-hayashi.kunihiko@socionext.com
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
drivers/pci/controller/dwc/pcie-uniphier-ep.c