Bjorn Helgaas | 7328c8f | 2018-01-26 11:45:16 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 3 | menu "DesignWare PCI Core Support" |
Rob Herring | a5aa35c | 2018-05-11 12:15:29 -0500 | [diff] [blame] | 4 | depends on PCI |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 5 | |
| 6 | config PCIE_DW |
| 7 | bool |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 8 | |
| 9 | config PCIE_DW_HOST |
| 10 | bool |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 11 | depends on PCI_MSI_IRQ_DOMAIN |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 12 | select PCIE_DW |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 13 | |
Kishon Vijay Abraham I | f8aed6e | 2017-03-27 15:15:05 +0530 | [diff] [blame] | 14 | config PCIE_DW_EP |
| 15 | bool |
| 16 | depends on PCI_ENDPOINT |
| 17 | select PCIE_DW |
| 18 | |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 19 | config PCI_DRA7XX |
Niklas Cassel | b052835 | 2017-12-20 00:29:28 +0100 | [diff] [blame] | 20 | bool |
Kishon Vijay Abraham I | 608793e | 2017-03-27 15:15:08 +0530 | [diff] [blame] | 21 | |
| 22 | config PCI_DRA7XX_HOST |
Niklas Cassel | b052835 | 2017-12-20 00:29:28 +0100 | [diff] [blame] | 23 | bool "TI DRA7xx PCIe controller Host Mode" |
| 24 | depends on SOC_DRA7XX || COMPILE_TEST |
Rob Herring | a5aa35c | 2018-05-11 12:15:29 -0500 | [diff] [blame] | 25 | depends on PCI_MSI_IRQ_DOMAIN |
Niklas Cassel | b052835 | 2017-12-20 00:29:28 +0100 | [diff] [blame] | 26 | depends on OF && HAS_IOMEM && TI_PIPE3 |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 27 | select PCIE_DW_HOST |
Niklas Cassel | b052835 | 2017-12-20 00:29:28 +0100 | [diff] [blame] | 28 | select PCI_DRA7XX |
Kishon Vijay Abraham I | 608793e | 2017-03-27 15:15:08 +0530 | [diff] [blame] | 29 | default y |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 30 | help |
Niklas Cassel | b052835 | 2017-12-20 00:29:28 +0100 | [diff] [blame] | 31 | Enables support for the PCIe controller in the DRA7xx SoC to work in |
| 32 | host mode. There are two instances of PCIe controller in DRA7xx. |
| 33 | This controller can work either as EP or RC. In order to enable |
| 34 | host-specific features PCI_DRA7XX_HOST must be selected and in order |
| 35 | to enable device-specific features PCI_DRA7XX_EP must be selected. |
| 36 | This uses the DesignWare core. |
Kishon Vijay Abraham I | 608793e | 2017-03-27 15:15:08 +0530 | [diff] [blame] | 37 | |
| 38 | config PCI_DRA7XX_EP |
Niklas Cassel | b052835 | 2017-12-20 00:29:28 +0100 | [diff] [blame] | 39 | bool "TI DRA7xx PCIe controller Endpoint Mode" |
| 40 | depends on SOC_DRA7XX || COMPILE_TEST |
Kishon Vijay Abraham I | 608793e | 2017-03-27 15:15:08 +0530 | [diff] [blame] | 41 | depends on PCI_ENDPOINT |
Niklas Cassel | b052835 | 2017-12-20 00:29:28 +0100 | [diff] [blame] | 42 | depends on OF && HAS_IOMEM && TI_PIPE3 |
Kishon Vijay Abraham I | 608793e | 2017-03-27 15:15:08 +0530 | [diff] [blame] | 43 | select PCIE_DW_EP |
Niklas Cassel | b052835 | 2017-12-20 00:29:28 +0100 | [diff] [blame] | 44 | select PCI_DRA7XX |
Kishon Vijay Abraham I | 608793e | 2017-03-27 15:15:08 +0530 | [diff] [blame] | 45 | help |
Niklas Cassel | b052835 | 2017-12-20 00:29:28 +0100 | [diff] [blame] | 46 | Enables support for the PCIe controller in the DRA7xx SoC to work in |
| 47 | endpoint mode. There are two instances of PCIe controller in DRA7xx. |
| 48 | This controller can work either as EP or RC. In order to enable |
| 49 | host-specific features PCI_DRA7XX_HOST must be selected and in order |
| 50 | to enable device-specific features PCI_DRA7XX_EP must be selected. |
| 51 | This uses the DesignWare core. |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 52 | |
| 53 | config PCIE_DW_PLAT |
Gustavo Pimentel | 1d906b2 | 2018-05-15 15:41:42 +0100 | [diff] [blame] | 54 | bool |
| 55 | |
| 56 | config PCIE_DW_PLAT_HOST |
| 57 | bool "Platform bus based DesignWare PCIe Controller - Host mode" |
| 58 | depends on PCI && PCI_MSI_IRQ_DOMAIN |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 59 | select PCIE_DW_HOST |
Gustavo Pimentel | 1d906b2 | 2018-05-15 15:41:42 +0100 | [diff] [blame] | 60 | select PCIE_DW_PLAT |
Gustavo Pimentel | 1d906b2 | 2018-05-15 15:41:42 +0100 | [diff] [blame] | 61 | help |
| 62 | Enables support for the PCIe controller in the Designware IP to |
| 63 | work in host mode. There are two instances of PCIe controller in |
| 64 | Designware IP. |
| 65 | This controller can work either as EP or RC. In order to enable |
| 66 | host-specific features PCIE_DW_PLAT_HOST must be selected and in |
| 67 | order to enable device-specific features PCI_DW_PLAT_EP must be |
| 68 | selected. |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 69 | |
Gustavo Pimentel | 1d906b2 | 2018-05-15 15:41:42 +0100 | [diff] [blame] | 70 | config PCIE_DW_PLAT_EP |
| 71 | bool "Platform bus based DesignWare PCIe Controller - Endpoint mode" |
| 72 | depends on PCI && PCI_MSI_IRQ_DOMAIN |
| 73 | depends on PCI_ENDPOINT |
| 74 | select PCIE_DW_EP |
| 75 | select PCIE_DW_PLAT |
| 76 | help |
| 77 | Enables support for the PCIe controller in the Designware IP to |
| 78 | work in endpoint mode. There are two instances of PCIe controller |
| 79 | in Designware IP. |
| 80 | This controller can work either as EP or RC. In order to enable |
| 81 | host-specific features PCIE_DW_PLAT_HOST must be selected and in |
| 82 | order to enable device-specific features PCI_DW_PLAT_EP must be |
| 83 | selected. |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 84 | |
| 85 | config PCI_EXYNOS |
| 86 | bool "Samsung Exynos PCIe controller" |
Rob Herring | 51bc085 | 2018-04-05 14:31:54 -0500 | [diff] [blame] | 87 | depends on SOC_EXYNOS5440 || COMPILE_TEST |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 88 | depends on PCI_MSI_IRQ_DOMAIN |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 89 | select PCIE_DW_HOST |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 90 | |
| 91 | config PCI_IMX6 |
Andrey Smirnov | 2d8ed46 | 2019-02-01 16:15:23 -0800 | [diff] [blame] | 92 | bool "Freescale i.MX6/7/8 PCIe controller" |
| 93 | depends on SOC_IMX6Q || SOC_IMX7D || (ARM64 && ARCH_MXC) || COMPILE_TEST |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 94 | depends on PCI_MSI_IRQ_DOMAIN |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 95 | select PCIE_DW_HOST |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 96 | |
| 97 | config PCIE_SPEAR13XX |
| 98 | bool "STMicroelectronics SPEAr PCIe controller" |
Rob Herring | 51bc085 | 2018-04-05 14:31:54 -0500 | [diff] [blame] | 99 | depends on ARCH_SPEAR13XX || COMPILE_TEST |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 100 | depends on PCI_MSI_IRQ_DOMAIN |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 101 | select PCIE_DW_HOST |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 102 | help |
| 103 | Say Y here if you want PCIe support on SPEAr13XX SoCs. |
| 104 | |
| 105 | config PCI_KEYSTONE |
Kishon Vijay Abraham I | 23284ad | 2019-03-25 15:09:43 +0530 | [diff] [blame] | 106 | bool |
| 107 | |
| 108 | config PCI_KEYSTONE_HOST |
| 109 | bool "PCI Keystone Host Mode" |
Kishon Vijay Abraham I | 18b0415 | 2019-03-25 15:09:35 +0530 | [diff] [blame] | 110 | depends on ARCH_KEYSTONE || ARCH_K3 || ((ARM || ARM64) && COMPILE_TEST) |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 111 | depends on PCI_MSI_IRQ_DOMAIN |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 112 | select PCIE_DW_HOST |
Kishon Vijay Abraham I | 23284ad | 2019-03-25 15:09:43 +0530 | [diff] [blame] | 113 | select PCI_KEYSTONE |
| 114 | default y |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 115 | help |
Kishon Vijay Abraham I | 23284ad | 2019-03-25 15:09:43 +0530 | [diff] [blame] | 116 | Enables support for the PCIe controller in the Keystone SoC to |
| 117 | work in host mode. The PCI controller on Keystone is based on |
| 118 | DesignWare hardware and therefore the driver re-uses the |
| 119 | DesignWare core functions to implement the driver. |
| 120 | |
| 121 | config PCI_KEYSTONE_EP |
| 122 | bool "PCI Keystone Endpoint Mode" |
| 123 | depends on ARCH_KEYSTONE || ARCH_K3 || ((ARM || ARM64) && COMPILE_TEST) |
| 124 | depends on PCI_ENDPOINT |
| 125 | select PCIE_DW_EP |
| 126 | select PCI_KEYSTONE |
| 127 | help |
| 128 | Enables support for the PCIe controller in the Keystone SoC to |
| 129 | work in endpoint mode. The PCI controller on Keystone is based |
| 130 | on DesignWare hardware and therefore the driver re-uses the |
| 131 | DesignWare core functions to implement the driver. |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 132 | |
| 133 | config PCI_LAYERSCAPE |
| 134 | bool "Freescale Layerscape PCIe controller" |
Rob Herring | 51bc085 | 2018-04-05 14:31:54 -0500 | [diff] [blame] | 135 | depends on OF && (ARM || ARCH_LAYERSCAPE || COMPILE_TEST) |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 136 | depends on PCI_MSI_IRQ_DOMAIN |
| 137 | select MFD_SYSCON |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 138 | select PCIE_DW_HOST |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 139 | help |
| 140 | Say Y here if you want PCIe controller support on Layerscape SoCs. |
| 141 | |
| 142 | config PCI_HISI |
Rob Herring | 51bc085 | 2018-04-05 14:31:54 -0500 | [diff] [blame] | 143 | depends on OF && (ARM64 || COMPILE_TEST) |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 144 | bool "HiSilicon Hip05 and Hip06 SoCs PCIe controllers" |
| 145 | depends on PCI_MSI_IRQ_DOMAIN |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 146 | select PCIE_DW_HOST |
Arnd Bergmann | 6665f8a | 2017-04-03 16:17:11 -0500 | [diff] [blame] | 147 | select PCI_HOST_COMMON |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 148 | help |
| 149 | Say Y here if you want PCIe controller support on HiSilicon |
| 150 | Hip05 and Hip06 SoCs |
| 151 | |
| 152 | config PCIE_QCOM |
| 153 | bool "Qualcomm PCIe controller" |
Rob Herring | 51bc085 | 2018-04-05 14:31:54 -0500 | [diff] [blame] | 154 | depends on OF && (ARCH_QCOM || COMPILE_TEST) |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 155 | depends on PCI_MSI_IRQ_DOMAIN |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 156 | select PCIE_DW_HOST |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 157 | help |
| 158 | Say Y here to enable PCIe controller support on Qualcomm SoCs. The |
Bjorn Helgaas | 96291d5 | 2017-09-01 16:35:50 -0500 | [diff] [blame] | 159 | PCIe controller uses the DesignWare core plus Qualcomm-specific |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 160 | hardware wrappers. |
| 161 | |
| 162 | config PCIE_ARMADA_8K |
| 163 | bool "Marvell Armada-8K PCIe controller" |
Rob Herring | 51bc085 | 2018-04-05 14:31:54 -0500 | [diff] [blame] | 164 | depends on ARCH_MVEBU || COMPILE_TEST |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 165 | depends on PCI_MSI_IRQ_DOMAIN |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 166 | select PCIE_DW_HOST |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 167 | help |
| 168 | Say Y here if you want to enable PCIe controller support on |
| 169 | Armada-8K SoCs. The PCIe controller on Armada-8K is based on |
Bjorn Helgaas | 96291d5 | 2017-09-01 16:35:50 -0500 | [diff] [blame] | 170 | DesignWare hardware and therefore the driver re-uses the |
| 171 | DesignWare core functions to implement the driver. |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 172 | |
| 173 | config PCIE_ARTPEC6 |
Niklas Cassel | b5074ef | 2017-12-20 00:29:35 +0100 | [diff] [blame] | 174 | bool |
| 175 | |
| 176 | config PCIE_ARTPEC6_HOST |
| 177 | bool "Axis ARTPEC-6 PCIe controller Host Mode" |
Rob Herring | 51bc085 | 2018-04-05 14:31:54 -0500 | [diff] [blame] | 178 | depends on MACH_ARTPEC6 || COMPILE_TEST |
Rob Herring | a5aa35c | 2018-05-11 12:15:29 -0500 | [diff] [blame] | 179 | depends on PCI_MSI_IRQ_DOMAIN |
Kishon Vijay Abraham I | a056020 | 2017-02-15 18:48:18 +0530 | [diff] [blame] | 180 | select PCIE_DW_HOST |
Niklas Cassel | b5074ef | 2017-12-20 00:29:35 +0100 | [diff] [blame] | 181 | select PCIE_ARTPEC6 |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 182 | help |
Niklas Cassel | b5074ef | 2017-12-20 00:29:35 +0100 | [diff] [blame] | 183 | Enables support for the PCIe controller in the ARTPEC-6 SoC to work in |
| 184 | host mode. This uses the DesignWare core. |
| 185 | |
| 186 | config PCIE_ARTPEC6_EP |
| 187 | bool "Axis ARTPEC-6 PCIe controller Endpoint Mode" |
Rob Herring | 51bc085 | 2018-04-05 14:31:54 -0500 | [diff] [blame] | 188 | depends on MACH_ARTPEC6 || COMPILE_TEST |
Niklas Cassel | b5074ef | 2017-12-20 00:29:35 +0100 | [diff] [blame] | 189 | depends on PCI_ENDPOINT |
| 190 | select PCIE_DW_EP |
| 191 | select PCIE_ARTPEC6 |
| 192 | help |
| 193 | Enables support for the PCIe controller in the ARTPEC-6 SoC to work in |
| 194 | endpoint mode. This uses the DesignWare core. |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 195 | |
Xiaowei Song | fc5165d | 2017-06-19 18:23:48 +0800 | [diff] [blame] | 196 | config PCIE_KIRIN |
Rob Herring | 51bc085 | 2018-04-05 14:31:54 -0500 | [diff] [blame] | 197 | depends on OF && (ARM64 || COMPILE_TEST) |
Xiaowei Song | fc5165d | 2017-06-19 18:23:48 +0800 | [diff] [blame] | 198 | bool "HiSilicon Kirin series SoCs PCIe controllers" |
Rob Herring | d2fd734 | 2018-03-07 09:42:37 -0600 | [diff] [blame] | 199 | depends on PCI_MSI_IRQ_DOMAIN |
Xiaowei Song | fc5165d | 2017-06-19 18:23:48 +0800 | [diff] [blame] | 200 | select PCIE_DW_HOST |
| 201 | help |
| 202 | Say Y here if you want PCIe controller support |
| 203 | on HiSilicon Kirin series SoCs. |
| 204 | |
Jianguo Sun | bbd11bd | 2017-10-23 19:17:50 +0800 | [diff] [blame] | 205 | config PCIE_HISI_STB |
| 206 | bool "HiSilicon STB SoCs PCIe controllers" |
Rob Herring | 51bc085 | 2018-04-05 14:31:54 -0500 | [diff] [blame] | 207 | depends on ARCH_HISI || COMPILE_TEST |
Jianguo Sun | bbd11bd | 2017-10-23 19:17:50 +0800 | [diff] [blame] | 208 | depends on PCI_MSI_IRQ_DOMAIN |
Jianguo Sun | bbd11bd | 2017-10-23 19:17:50 +0800 | [diff] [blame] | 209 | select PCIE_DW_HOST |
| 210 | help |
| 211 | Say Y here if you want PCIe controller support on HiSilicon STB SoCs |
| 212 | |
Yue Wang | 9c0ef6d | 2018-12-18 16:04:46 +0800 | [diff] [blame] | 213 | config PCI_MESON |
| 214 | bool "MESON PCIe controller" |
| 215 | depends on PCI_MSI_IRQ_DOMAIN |
| 216 | select PCIE_DW_HOST |
| 217 | help |
| 218 | Say Y here if you want to enable PCI controller support on Amlogic |
| 219 | SoCs. The PCI controller on Amlogic is based on DesignWare hardware |
| 220 | and therefore the driver re-uses the DesignWare core functions to |
| 221 | implement the driver. |
| 222 | |
Kunihiko Hayashi | 7e6d5cd | 2018-12-07 09:53:12 +0900 | [diff] [blame] | 223 | config PCIE_UNIPHIER |
| 224 | bool "Socionext UniPhier PCIe controllers" |
| 225 | depends on ARCH_UNIPHIER || COMPILE_TEST |
| 226 | depends on OF && HAS_IOMEM |
| 227 | depends on PCI_MSI_IRQ_DOMAIN |
| 228 | select PCIE_DW_HOST |
| 229 | help |
| 230 | Say Y here if you want PCIe controller support on UniPhier SoCs. |
| 231 | This driver supports LD20 and PXs3 SoCs. |
| 232 | |
Kishon Vijay Abraham I | 950bf63 | 2017-01-06 18:22:48 +0530 | [diff] [blame] | 233 | endmenu |