PCI: loongson: Add ACPI init support
authorHuacai Chen <chenhuacai@loongson.cn>
Thu, 14 Jul 2022 12:42:12 +0000 (20:42 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 14 Jul 2022 20:25:36 +0000 (15:25 -0500)
commitcd89edda4002b7fb3c0a6765c3a60a60d5b1dc16
treead6fc428dc3366a2b55bfd4fb9eb483273ce478d
parentdee449aafd48213e6ba4db74526d30b097fc93cd
PCI: loongson: Add ACPI init support

Loongson PCH (LS7A chipset) will be used by both MIPS-based and LoongArch-
based Loongson processors. MIPS-based Loongson uses FDT, while LoongArch-
based Loongson uses ACPI.

Add ACPI init support for the driver in pci-loongson.c because it is
currently FDT-only.

LoongArch is a new RISC ISA, mainline support will come soon, and
documentations are here (in translation):

  https://github.com/loongson/LoongArch-Documentation

Link: https://lore.kernel.org/r/20220714124216.1489304-4-chenhuacai@loongson.cn
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/acpi/pci_mcfg.c
drivers/pci/controller/Kconfig
drivers/pci/controller/pci-loongson.c
include/linux/pci-ecam.h