PCI: layerscape: Factor out SCFG related function
authorMinghuan Lian <Minghuan.Lian@freescale.com>
Fri, 16 Oct 2015 07:19:17 +0000 (15:19 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 2 Nov 2015 21:38:39 +0000 (15:38 -0600)
commitd64633453e3b3e580111ecca566d9e2771dad694
tree7f9df9361573c8411473d6b59a39fdeb6eedc786
parent7af4ce3571931bdc043c4220402262f817b9b968
PCI: layerscape: Factor out SCFG related function

For the LS1021a PCIe controller, some status registers are located in SCFG,
unlike other Layerscape devices.

Move SCFG-related code to ls1021_pcie_host_init() and rename
ls_pcie_link_up() to ls1021_pcie_link_up() because LTSSM status is also in
SCFG.

Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-layerscape.c