Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. # SPDX-License-Identifier: GPL-2.0
  2. menu "DesignWare-based PCIe controllers"
  3. depends on PCI
  4. config PCIE_DW
  5. bool
  6. config PCIE_DW_HOST
  7. bool
  8. select PCIE_DW
  9. config PCIE_DW_EP
  10. bool
  11. select PCIE_DW
  12. config PCIE_AL
  13. bool "Amazon Annapurna Labs PCIe controller"
  14. depends on OF && (ARM64 || COMPILE_TEST)
  15. depends on PCI_MSI
  16. select PCIE_DW_HOST
  17. select PCI_ECAM
  18. help
  19. Say Y here to enable support of the Amazon's Annapurna Labs PCIe
  20. controller IP on Amazon SoCs. The PCIe controller uses the DesignWare
  21. core plus Annapurna Labs proprietary hardware wrappers. This is
  22. required only for DT-based platforms. ACPI platforms with the
  23. Annapurna Labs PCIe controller don't need to enable this.
  24. config PCI_MESON
  25. tristate "Amlogic Meson PCIe controller"
  26. default m if ARCH_MESON
  27. depends on PCI_MSI
  28. select PCIE_DW_HOST
  29. help
  30. Say Y here if you want to enable PCI controller support on Amlogic
  31. SoCs. The PCI controller on Amlogic is based on DesignWare hardware
  32. and therefore the driver re-uses the DesignWare core functions to
  33. implement the driver.
  34. config PCIE_ARTPEC6
  35. bool
  36. config PCIE_ARTPEC6_HOST
  37. bool "Axis ARTPEC-6 PCIe controller (host mode)"
  38. depends on MACH_ARTPEC6 || COMPILE_TEST
  39. depends on PCI_MSI
  40. select PCIE_DW_HOST
  41. select PCIE_ARTPEC6
  42. help
  43. Enables support for the PCIe controller in the ARTPEC-6 SoC to work in
  44. host mode. This uses the DesignWare core.
  45. config PCIE_ARTPEC6_EP
  46. bool "Axis ARTPEC-6 PCIe controller (endpoint mode)"
  47. depends on MACH_ARTPEC6 || COMPILE_TEST
  48. depends on PCI_ENDPOINT
  49. select PCIE_DW_EP
  50. select PCIE_ARTPEC6
  51. help
  52. Enables support for the PCIe controller in the ARTPEC-6 SoC to work in
  53. endpoint mode. This uses the DesignWare core.
  54. config PCIE_BT1
  55. tristate "Baikal-T1 PCIe controller"
  56. depends on MIPS_BAIKAL_T1 || COMPILE_TEST
  57. depends on PCI_MSI
  58. select PCIE_DW_HOST
  59. help
  60. Enables support for the PCIe controller in the Baikal-T1 SoC to work
  61. in host mode. It's based on the Synopsys DWC PCIe v4.60a IP-core.
  62. config PCI_IMX6
  63. bool
  64. config PCI_IMX6_HOST
  65. bool "Freescale i.MX6/7/8 PCIe controller (host mode)"
  66. depends on ARCH_MXC || COMPILE_TEST
  67. depends on PCI_MSI
  68. select PCIE_DW_HOST
  69. select PCI_IMX6
  70. help
  71. Enables support for the PCIe controller in the i.MX SoCs to
  72. work in Root Complex mode. The PCI controller on i.MX is based
  73. on DesignWare hardware and therefore the driver re-uses the
  74. DesignWare core functions to implement the driver.
  75. config PCI_IMX6_EP
  76. bool "Freescale i.MX6/7/8 PCIe controller (endpoint mode)"
  77. depends on ARCH_MXC || COMPILE_TEST
  78. depends on PCI_ENDPOINT
  79. select PCIE_DW_EP
  80. select PCI_IMX6
  81. help
  82. Enables support for the PCIe controller in the i.MX SoCs to
  83. work in endpoint mode. The PCI controller on i.MX is based
  84. on DesignWare hardware and therefore the driver re-uses the
  85. DesignWare core functions to implement the driver.
  86. config PCI_LAYERSCAPE
  87. bool "Freescale Layerscape PCIe controller (host mode)"
  88. depends on OF && (ARM || ARCH_LAYERSCAPE || COMPILE_TEST)
  89. depends on PCI_MSI
  90. select PCIE_DW_HOST
  91. select MFD_SYSCON
  92. help
  93. Say Y here if you want to enable PCIe controller support on Layerscape
  94. SoCs to work in Host mode.
  95. This controller can work either as EP or RC. The RCW[HOST_AGT_PEX]
  96. determines which PCIe controller works in EP mode and which PCIe
  97. controller works in RC mode.
  98. config PCI_LAYERSCAPE_EP
  99. bool "Freescale Layerscape PCIe controller (endpoint mode)"
  100. depends on OF && (ARM || ARCH_LAYERSCAPE || COMPILE_TEST)
  101. depends on PCI_ENDPOINT
  102. select PCIE_DW_EP
  103. help
  104. Say Y here if you want to enable PCIe controller support on Layerscape
  105. SoCs to work in Endpoint mode.
  106. This controller can work either as EP or RC. The RCW[HOST_AGT_PEX]
  107. determines which PCIe controller works in EP mode and which PCIe
  108. controller works in RC mode.
  109. config PCI_HISI
  110. depends on OF && (ARM64 || COMPILE_TEST)
  111. bool "HiSilicon Hip05 and Hip06 SoCs PCIe controller"
  112. depends on PCI_MSI
  113. select PCIE_DW_HOST
  114. select PCI_HOST_COMMON
  115. help
  116. Say Y here if you want PCIe controller support on HiSilicon
  117. Hip05 and Hip06 SoCs
  118. config PCIE_KIRIN
  119. depends on OF && (ARM64 || COMPILE_TEST)
  120. tristate "HiSilicon Kirin PCIe controller"
  121. depends on PCI_MSI
  122. select PCIE_DW_HOST
  123. select REGMAP_MMIO
  124. help
  125. Say Y here if you want PCIe controller support
  126. on HiSilicon Kirin series SoCs.
  127. config PCIE_HISI_STB
  128. bool "HiSilicon STB PCIe controller"
  129. depends on ARCH_HISI || COMPILE_TEST
  130. depends on PCI_MSI
  131. select PCIE_DW_HOST
  132. help
  133. Say Y here if you want PCIe controller support on HiSilicon STB SoCs
  134. config PCIE_INTEL_GW
  135. bool "Intel Gateway PCIe controller "
  136. depends on OF && (X86 || COMPILE_TEST)
  137. depends on PCI_MSI
  138. select PCIE_DW_HOST
  139. help
  140. Say 'Y' here to enable PCIe Host controller support on Intel
  141. Gateway SoCs.
  142. The PCIe controller uses the DesignWare core plus Intel-specific
  143. hardware wrappers.
  144. config PCIE_KEEMBAY
  145. bool
  146. config PCIE_KEEMBAY_HOST
  147. bool "Intel Keem Bay PCIe controller (host mode)"
  148. depends on ARCH_KEEMBAY || COMPILE_TEST
  149. depends on PCI_MSI
  150. select PCIE_DW_HOST
  151. select PCIE_KEEMBAY
  152. help
  153. Say 'Y' here to enable support for the PCIe controller in Keem Bay
  154. to work in host mode.
  155. The PCIe controller is based on DesignWare Hardware and uses
  156. DesignWare core functions.
  157. config PCIE_KEEMBAY_EP
  158. bool "Intel Keem Bay PCIe controller (endpoint mode)"
  159. depends on ARCH_KEEMBAY || COMPILE_TEST
  160. depends on PCI_MSI
  161. depends on PCI_ENDPOINT
  162. select PCIE_DW_EP
  163. select PCIE_KEEMBAY
  164. help
  165. Say 'Y' here to enable support for the PCIe controller in Keem Bay
  166. to work in endpoint mode.
  167. The PCIe controller is based on DesignWare Hardware and uses
  168. DesignWare core functions.
  169. config PCIE_ARMADA_8K
  170. bool "Marvell Armada-8K PCIe controller"
  171. depends on ARCH_MVEBU || COMPILE_TEST
  172. depends on PCI_MSI
  173. select PCIE_DW_HOST
  174. help
  175. Say Y here if you want to enable PCIe controller support on
  176. Armada-8K SoCs. The PCIe controller on Armada-8K is based on
  177. DesignWare hardware and therefore the driver re-uses the
  178. DesignWare core functions to implement the driver.
  179. config PCIE_TEGRA194
  180. tristate
  181. config PCIE_TEGRA194_HOST
  182. tristate "NVIDIA Tegra194 (and later) PCIe controller (host mode)"
  183. depends on ARCH_TEGRA_194_SOC || COMPILE_TEST
  184. depends on PCI_MSI
  185. select PCIE_DW_HOST
  186. select PHY_TEGRA194_P2U
  187. select PCIE_TEGRA194
  188. help
  189. Enables support for the PCIe controller in the NVIDIA Tegra194 SoC to
  190. work in host mode. There are two instances of PCIe controllers in
  191. Tegra194. This controller can work either as EP or RC. In order to
  192. enable host-specific features PCIE_TEGRA194_HOST must be selected and
  193. in order to enable device-specific features PCIE_TEGRA194_EP must be
  194. selected. This uses the DesignWare core.
  195. config PCIE_TEGRA194_EP
  196. tristate "NVIDIA Tegra194 (and later) PCIe controller (endpoint mode)"
  197. depends on ARCH_TEGRA_194_SOC || COMPILE_TEST
  198. depends on PCI_ENDPOINT
  199. select PCIE_DW_EP
  200. select PHY_TEGRA194_P2U
  201. select PCIE_TEGRA194
  202. help
  203. Enables support for the PCIe controller in the NVIDIA Tegra194 SoC to
  204. work in endpoint mode. There are two instances of PCIe controllers in
  205. Tegra194. This controller can work either as EP or RC. In order to
  206. enable host-specific features PCIE_TEGRA194_HOST must be selected and
  207. in order to enable device-specific features PCIE_TEGRA194_EP must be
  208. selected. This uses the DesignWare core.
  209. config PCIE_DW_PLAT
  210. bool
  211. config PCIE_DW_PLAT_HOST
  212. bool "Platform bus based DesignWare PCIe controller (host mode)"
  213. depends on PCI_MSI
  214. select PCIE_DW_HOST
  215. select PCIE_DW_PLAT
  216. help
  217. Enables support for the PCIe controller in the Designware IP to
  218. work in host mode. There are two instances of PCIe controller in
  219. Designware IP.
  220. This controller can work either as EP or RC. In order to enable
  221. host-specific features PCIE_DW_PLAT_HOST must be selected and in
  222. order to enable device-specific features PCI_DW_PLAT_EP must be
  223. selected.
  224. config PCIE_DW_PLAT_EP
  225. bool "Platform bus based DesignWare PCIe controller (endpoint mode)"
  226. depends on PCI && PCI_MSI
  227. depends on PCI_ENDPOINT
  228. select PCIE_DW_EP
  229. select PCIE_DW_PLAT
  230. help
  231. Enables support for the PCIe controller in the Designware IP to
  232. work in endpoint mode. There are two instances of PCIe controller
  233. in Designware IP.
  234. This controller can work either as EP or RC. In order to enable
  235. host-specific features PCIE_DW_PLAT_HOST must be selected and in
  236. order to enable device-specific features PCI_DW_PLAT_EP must be
  237. selected.
  238. config PCIE_QCOM_COMMON
  239. bool
  240. config PCIE_QCOM
  241. bool "Qualcomm PCIe controller (host mode)"
  242. depends on OF && (ARCH_QCOM || COMPILE_TEST)
  243. depends on PCI_MSI
  244. select PCIE_DW_HOST
  245. select CRC8
  246. select PCIE_QCOM_COMMON
  247. help
  248. Say Y here to enable PCIe controller support on Qualcomm SoCs. The
  249. PCIe controller uses the DesignWare core plus Qualcomm-specific
  250. hardware wrappers.
  251. config PCIE_QCOM_EP
  252. tristate "Qualcomm PCIe controller (endpoint mode)"
  253. depends on OF && (ARCH_QCOM || COMPILE_TEST)
  254. depends on PCI_ENDPOINT
  255. select PCIE_DW_EP
  256. select PCIE_QCOM_COMMON
  257. help
  258. Say Y here to enable support for the PCIe controllers on Qualcomm SoCs
  259. to work in endpoint mode. The PCIe controller uses the DesignWare core
  260. plus Qualcomm-specific hardware wrappers.
  261. config PCIE_RCAR_GEN4
  262. tristate
  263. config PCIE_RCAR_GEN4_HOST
  264. tristate "Renesas R-Car Gen4 PCIe controller (host mode)"
  265. depends on ARCH_RENESAS || COMPILE_TEST
  266. depends on PCI_MSI
  267. select PCIE_DW_HOST
  268. select PCIE_RCAR_GEN4
  269. help
  270. Say Y here if you want PCIe controller (host mode) on R-Car Gen4 SoCs.
  271. To compile this driver as a module, choose M here: the module will be
  272. called pcie-rcar-gen4.ko. This uses the DesignWare core.
  273. config PCIE_RCAR_GEN4_EP
  274. tristate "Renesas R-Car Gen4 PCIe controller (endpoint mode)"
  275. depends on ARCH_RENESAS || COMPILE_TEST
  276. depends on PCI_ENDPOINT
  277. select PCIE_DW_EP
  278. select PCIE_RCAR_GEN4
  279. help
  280. Say Y here if you want PCIe controller (endpoint mode) on R-Car Gen4
  281. SoCs. To compile this driver as a module, choose M here: the module
  282. will be called pcie-rcar-gen4.ko. This uses the DesignWare core.
  283. config PCIE_ROCKCHIP_DW
  284. bool
  285. config PCIE_ROCKCHIP_DW_HOST
  286. bool "Rockchip DesignWare PCIe controller (host mode)"
  287. depends on PCI_MSI
  288. depends on ARCH_ROCKCHIP || COMPILE_TEST
  289. depends on OF
  290. select PCIE_DW_HOST
  291. select PCIE_ROCKCHIP_DW
  292. help
  293. Enables support for the DesignWare PCIe controller in the
  294. Rockchip SoC (except RK3399) to work in host mode.
  295. config PCIE_ROCKCHIP_DW_EP
  296. bool "Rockchip DesignWare PCIe controller (endpoint mode)"
  297. depends on ARCH_ROCKCHIP || COMPILE_TEST
  298. depends on OF
  299. depends on PCI_ENDPOINT
  300. select PCIE_DW_EP
  301. select PCIE_ROCKCHIP_DW
  302. help
  303. Enables support for the DesignWare PCIe controller in the
  304. Rockchip SoC (except RK3399) to work in endpoint mode.
  305. config PCI_EXYNOS
  306. tristate "Samsung Exynos PCIe controller"
  307. depends on ARCH_EXYNOS || COMPILE_TEST
  308. depends on PCI_MSI
  309. select PCIE_DW_HOST
  310. help
  311. Enables support for the PCIe controller in the Samsung Exynos SoCs
  312. to work in host mode. The PCI controller is based on the DesignWare
  313. hardware and therefore the driver re-uses the DesignWare core
  314. functions to implement the driver.
  315. config PCIE_FU740
  316. bool "SiFive FU740 PCIe controller"
  317. depends on PCI_MSI
  318. depends on ARCH_SIFIVE || COMPILE_TEST
  319. select PCIE_DW_HOST
  320. help
  321. Say Y here if you want PCIe controller support for the SiFive
  322. FU740.
  323. config PCIE_UNIPHIER
  324. bool "Socionext UniPhier PCIe controller (host mode)"
  325. depends on ARCH_UNIPHIER || COMPILE_TEST
  326. depends on OF && HAS_IOMEM
  327. depends on PCI_MSI
  328. select PCIE_DW_HOST
  329. help
  330. Say Y here if you want PCIe host controller support on UniPhier SoCs.
  331. This driver supports LD20 and PXs3 SoCs.
  332. config PCIE_UNIPHIER_EP
  333. bool "Socionext UniPhier PCIe controller (endpoint mode)"
  334. depends on ARCH_UNIPHIER || COMPILE_TEST
  335. depends on OF && HAS_IOMEM
  336. depends on PCI_ENDPOINT
  337. select PCIE_DW_EP
  338. help
  339. Say Y here if you want PCIe endpoint controller support on
  340. UniPhier SoCs. This driver supports Pro5 SoC.
  341. config PCIE_SPEAR13XX
  342. bool "STMicroelectronics SPEAr PCIe controller"
  343. depends on ARCH_SPEAR13XX || COMPILE_TEST
  344. depends on PCI_MSI
  345. select PCIE_DW_HOST
  346. help
  347. Say Y here if you want PCIe support on SPEAr13XX SoCs.
  348. config PCI_DRA7XX
  349. tristate
  350. config PCI_DRA7XX_HOST
  351. tristate "TI DRA7xx PCIe controller (host mode)"
  352. depends on SOC_DRA7XX || COMPILE_TEST
  353. depends on OF && HAS_IOMEM && TI_PIPE3
  354. depends on PCI_MSI
  355. select PCIE_DW_HOST
  356. select PCI_DRA7XX
  357. default y if SOC_DRA7XX
  358. help
  359. Enables support for the PCIe controller in the DRA7xx SoC to work in
  360. host mode. There are two instances of PCIe controller in DRA7xx.
  361. This controller can work either as EP or RC. In order to enable
  362. host-specific features PCI_DRA7XX_HOST must be selected and in order
  363. to enable device-specific features PCI_DRA7XX_EP must be selected.
  364. This uses the DesignWare core.
  365. config PCI_DRA7XX_EP
  366. tristate "TI DRA7xx PCIe controller (endpoint mode)"
  367. depends on SOC_DRA7XX || COMPILE_TEST
  368. depends on OF && HAS_IOMEM && TI_PIPE3
  369. depends on PCI_ENDPOINT
  370. select PCIE_DW_EP
  371. select PCI_DRA7XX
  372. help
  373. Enables support for the PCIe controller in the DRA7xx SoC to work in
  374. endpoint mode. There are two instances of PCIe controller in DRA7xx.
  375. This controller can work either as EP or RC. In order to enable
  376. host-specific features PCI_DRA7XX_HOST must be selected and in order
  377. to enable device-specific features PCI_DRA7XX_EP must be selected.
  378. This uses the DesignWare core.
  379. config PCI_KEYSTONE
  380. bool
  381. config PCI_KEYSTONE_HOST
  382. bool "TI Keystone PCIe controller (host mode)"
  383. depends on ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
  384. depends on PCI_MSI
  385. select PCIE_DW_HOST
  386. select PCI_KEYSTONE
  387. help
  388. Enables support for the PCIe controller in the Keystone SoC to
  389. work in host mode. The PCI controller on Keystone is based on
  390. DesignWare hardware and therefore the driver re-uses the
  391. DesignWare core functions to implement the driver.
  392. config PCI_KEYSTONE_EP
  393. bool "TI Keystone PCIe controller (endpoint mode)"
  394. depends on ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
  395. depends on PCI_ENDPOINT
  396. select PCIE_DW_EP
  397. select PCI_KEYSTONE
  398. help
  399. Enables support for the PCIe controller in the Keystone SoC to
  400. work in endpoint mode. The PCI controller on Keystone is based
  401. on DesignWare hardware and therefore the driver re-uses the
  402. DesignWare core functions to implement the driver.
  403. config PCIE_VISCONTI_HOST
  404. bool "Toshiba Visconti PCIe controller"
  405. depends on ARCH_VISCONTI || COMPILE_TEST
  406. depends on PCI_MSI
  407. select PCIE_DW_HOST
  408. help
  409. Say Y here if you want PCIe controller support on Toshiba Visconti SoC.
  410. This driver supports TMPV7708 SoC.
  411. endmenu