PCI: mediatek: Allow building for ARCH_AIROHA
authorFelix Fietkau <nbd@nbd.name>
Wed, 15 Jun 2022 12:53:34 +0000 (14:53 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 Jun 2022 15:28:38 +0000 (10:28 -0500)
Allow selecting the pcie-mediatek driver if ARCH_AIROHA is set, because the
Airoha EN7523 SoC uses the same controller as MT7622.

The driver itself is not modified. The PCIe controller DT node should use
mediatek,mt7622-pcie after airoha,en7523-pcie.

Link: https://lore.kernel.org/r/20220615125335.96089-2-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/Kconfig

index b8d96d3..2f6806d 100644 (file)
@@ -237,7 +237,7 @@ config PCIE_ROCKCHIP_EP
 
 config PCIE_MEDIATEK
        tristate "MediaTek PCIe controller"
-       depends on ARCH_MEDIATEK || COMPILE_TEST
+       depends on ARCH_AIROHA || ARCH_MEDIATEK || COMPILE_TEST
        depends on OF
        depends on PCI_MSI_IRQ_DOMAIN
        help