Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menu "Remoteproc drivers"
  3. config REMOTEPROC
  4. bool "Support for Remote Processor subsystem"
  5. depends on HAS_DMA
  6. select CRC32
  7. select FW_LOADER
  8. select VIRTIO
  9. select WANT_DEV_COREDUMP
  10. help
  11. Support for remote processors (such as DSP coprocessors). These
  12. are mainly used on embedded systems.
  13. if REMOTEPROC
  14. config REMOTEPROC_CDEV
  15. bool "Remoteproc character device interface"
  16. help
  17. Say y here to have a character device interface for the remoteproc
  18. framework. Userspace can boot/shutdown remote processors through
  19. this interface.
  20. It's safe to say N if you don't want to use this interface.
  21. config IMX_REMOTEPROC
  22. tristate "i.MX remoteproc support"
  23. depends on ARCH_MXC
  24. depends on HAVE_ARM_SMCCC
  25. depends on IMX_SCMI_CPU_DRV || !IMX_SCMI_CPU_DRV
  26. depends on IMX_SCMI_LMM_DRV || !IMX_SCMI_LMM_DRV
  27. select MAILBOX
  28. help
  29. Say y here to support iMX's remote processors via the remote
  30. processor framework.
  31. It's safe to say N here.
  32. config IMX_DSP_REMOTEPROC
  33. tristate "i.MX DSP remoteproc support"
  34. depends on ARCH_MXC
  35. depends on HAVE_ARM_SMCCC
  36. select MAILBOX
  37. help
  38. Say y here to support iMX's DSP remote processors via the remote
  39. processor framework.
  40. It's safe to say N here.
  41. config INGENIC_VPU_RPROC
  42. tristate "Ingenic JZ47xx VPU remoteproc support"
  43. depends on MIPS || COMPILE_TEST
  44. help
  45. Say y or m here to support the VPU in the JZ47xx SoCs from Ingenic.
  46. This can be either built-in or a loadable module.
  47. If unsure say N.
  48. config MTK_SCP
  49. tristate "Mediatek SCP support"
  50. depends on ARCH_MEDIATEK || COMPILE_TEST
  51. select RPMSG_MTK_SCP
  52. help
  53. Say y here to support Mediatek's System Companion Processor (SCP) via
  54. the remote processor framework.
  55. It's safe to say N here.
  56. config OMAP_REMOTEPROC
  57. tristate "OMAP remoteproc support"
  58. depends on ARCH_OMAP4 || SOC_OMAP5 || SOC_DRA7XX
  59. depends on OMAP_IOMMU
  60. select MAILBOX
  61. select OMAP2PLUS_MBOX
  62. help
  63. Say y here to support OMAP's remote processors (dual M3
  64. and DSP on OMAP4) via the remote processor framework.
  65. Currently only supported on OMAP4.
  66. Usually you want to say Y here, in order to enable multimedia
  67. use-cases to run on your platform (multimedia codecs are
  68. offloaded to remote DSP processors using this framework).
  69. It's safe to say N here if you're not interested in multimedia
  70. offloading or just want a bare minimum kernel.
  71. config OMAP_REMOTEPROC_WATCHDOG
  72. bool "OMAP remoteproc watchdog timer"
  73. depends on OMAP_REMOTEPROC
  74. default n
  75. help
  76. Say Y here to enable watchdog timer for remote processors.
  77. This option controls the watchdog functionality for the remote
  78. processors in OMAP. Dedicated OMAP DMTimers are used by the remote
  79. processors and triggers the timer interrupt upon a watchdog
  80. detection.
  81. config WKUP_M3_RPROC
  82. tristate "AMx3xx Wakeup M3 remoteproc support"
  83. depends on SOC_AM33XX || SOC_AM43XX
  84. help
  85. Say y here to support Wakeup M3 remote processor on TI AM33xx
  86. and AM43xx family of SoCs.
  87. Required for Suspend-to-RAM on AM33xx and AM43xx SoCs. Also needed
  88. for deep CPUIdle states on AM33xx SoCs. Allows for loading of the
  89. firmware onto these remote processors.
  90. If unsure say N.
  91. config DA8XX_REMOTEPROC
  92. tristate "DA8xx/OMAP-L13x remoteproc support"
  93. depends on ARCH_DAVINCI_DA8XX
  94. depends on DMA_CMA
  95. help
  96. Say y here to support DA8xx/OMAP-L13x remote processors via the
  97. remote processor framework.
  98. You want to say y here in order to enable AMP
  99. use-cases to run on your platform (multimedia codecs are
  100. offloaded to remote DSP processors using this framework).
  101. This module controls the name of the firmware file that gets
  102. loaded on the DSP. This file must reside in the /lib/firmware
  103. directory. It can be specified via the module parameter
  104. da8xx_fw_name=<filename>, and if not specified will default to
  105. "rproc-dsp-fw".
  106. It's safe to say n here if you're not interested in multimedia
  107. offloading.
  108. config KEYSTONE_REMOTEPROC
  109. tristate "Keystone Remoteproc support"
  110. depends on ARCH_KEYSTONE
  111. help
  112. Say Y here here to support Keystone remote processors (DSP)
  113. via the remote processor framework.
  114. It's safe to say N here if you're not interested in the Keystone
  115. DSPs or just want to use a bare minimum kernel.
  116. config MESON_MX_AO_ARC_REMOTEPROC
  117. tristate "Amlogic Meson6/8/8b/8m2 AO ARC remote processor support"
  118. depends on HAS_IOMEM
  119. depends on (ARM && ARCH_MESON) || COMPILE_TEST
  120. select GENERIC_ALLOCATOR
  121. help
  122. Say m or y here to have support for the AO ARC remote processor
  123. on Amlogic Meson6/Meson8/Meson8b/Meson8m2 SoCs. This is
  124. typically used for system suspend.
  125. If unsure say N.
  126. config PRU_REMOTEPROC
  127. tristate "TI PRU remoteproc support"
  128. depends on TI_PRUSS
  129. default TI_PRUSS
  130. help
  131. Support for TI PRU remote processors present within a PRU-ICSS
  132. subsystem via the remote processor framework.
  133. Say Y or M here to support the Programmable Realtime Unit (PRU)
  134. processors on various TI SoCs. It's safe to say N here if you're
  135. not interested in the PRU or if you are unsure.
  136. config QCOM_PIL_INFO
  137. tristate
  138. config QCOM_RPROC_COMMON
  139. tristate
  140. select AUXILIARY_BUS
  141. config QCOM_Q6V5_COMMON
  142. tristate
  143. depends on ARCH_QCOM
  144. depends on QCOM_SMEM
  145. config QCOM_Q6V5_ADSP
  146. tristate "Qualcomm Technology Inc ADSP Peripheral Image Loader"
  147. depends on OF && ARCH_QCOM
  148. depends on QCOM_SMEM
  149. depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
  150. depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
  151. depends on QCOM_SYSMON || QCOM_SYSMON=n
  152. depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
  153. depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
  154. select MFD_SYSCON
  155. select QCOM_PIL_INFO
  156. select QCOM_MDT_LOADER
  157. select QCOM_Q6V5_COMMON
  158. select QCOM_RPROC_COMMON
  159. help
  160. Say y here to support the Peripheral Image Loader
  161. for the non-TrustZone part of Qualcomm Technology Inc. ADSP and CDSP
  162. remote processors. The TrustZone part is handled by QCOM_Q6V5_PAS
  163. driver.
  164. config QCOM_Q6V5_MSS
  165. tristate "Qualcomm Hexagon V5 self-authenticating modem subsystem support"
  166. depends on OF && ARCH_QCOM
  167. depends on QCOM_SMEM
  168. depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
  169. depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
  170. depends on QCOM_SYSMON || QCOM_SYSMON=n
  171. depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
  172. depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
  173. select MFD_SYSCON
  174. select QCOM_MDT_LOADER
  175. select QCOM_PIL_INFO
  176. select QCOM_Q6V5_COMMON
  177. select QCOM_RPROC_COMMON
  178. select QCOM_SCM
  179. help
  180. Say y here to support the Qualcomm self-authenticating modem
  181. subsystem based on Hexagon V5. The TrustZone based system is
  182. handled by QCOM_Q6V5_PAS driver.
  183. config QCOM_Q6V5_PAS
  184. tristate "Qualcomm Peripheral Authentication Service support"
  185. depends on OF && ARCH_QCOM
  186. depends on QCOM_SMEM
  187. depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
  188. depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
  189. depends on QCOM_SYSMON || QCOM_SYSMON=n
  190. depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
  191. depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
  192. select MFD_SYSCON
  193. select QCOM_PIL_INFO
  194. select QCOM_MDT_LOADER
  195. select QCOM_Q6V5_COMMON
  196. select QCOM_RPROC_COMMON
  197. select QCOM_SCM
  198. help
  199. Say y here to support the TrustZone based Peripheral Image Loader for
  200. the Qualcomm remote processors. This is commonly used to control
  201. subsystems such as ADSP (Audio DSP), CDSP (Compute DSP), MPSS (Modem
  202. Peripheral SubSystem), and SLPI (Sensor Low Power Island).
  203. config QCOM_Q6V5_WCSS
  204. tristate "Qualcomm Hexagon based WCSS Peripheral Image Loader"
  205. depends on OF && ARCH_QCOM
  206. depends on QCOM_SMEM
  207. depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
  208. depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
  209. depends on QCOM_SYSMON || QCOM_SYSMON=n
  210. depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
  211. depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
  212. select MFD_SYSCON
  213. select QCOM_MDT_LOADER
  214. select QCOM_PIL_INFO
  215. select QCOM_Q6V5_COMMON
  216. select QCOM_RPROC_COMMON
  217. select QCOM_SCM
  218. help
  219. Say y here to support the Qualcomm Peripheral Image Loader for the
  220. Hexagon V5 based WCSS remote processors on e.g. IPQ8074. This is
  221. a non-TrustZone wireless subsystem.
  222. config QCOM_SYSMON
  223. tristate "Qualcomm sysmon driver"
  224. depends on RPMSG
  225. depends on ARCH_QCOM
  226. depends on NET
  227. select QCOM_QMI_HELPERS
  228. help
  229. The sysmon driver implements a sysmon QMI client and a handler for
  230. the sys_mon SMD and GLINK channel, which are used for graceful
  231. shutdown, retrieving failure information and propagating information
  232. about other subsystems being shut down.
  233. Say y here if your system runs firmware on any other subsystems, e.g.
  234. modem or DSP.
  235. config QCOM_WCNSS_PIL
  236. tristate "Qualcomm WCNSS Peripheral Image Loader"
  237. depends on OF && ARCH_QCOM
  238. depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
  239. depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
  240. depends on QCOM_SMEM
  241. depends on QCOM_SYSMON || QCOM_SYSMON=n
  242. depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
  243. select QCOM_MDT_LOADER
  244. select QCOM_PIL_INFO
  245. select QCOM_RPROC_COMMON
  246. select QCOM_SCM
  247. help
  248. Say y here to support the Peripheral Image Loader for loading WCNSS
  249. firmware and boot the core on e.g. MSM8974, MSM8916. The firmware is
  250. verified and booted with the help of the Peripheral Authentication
  251. System (PAS) in TrustZone.
  252. config RCAR_REMOTEPROC
  253. tristate "Renesas R-Car Gen3 remoteproc support"
  254. depends on ARCH_RENESAS || COMPILE_TEST
  255. help
  256. Say y here to support R-Car realtime processor via the
  257. remote processor framework. An ELF firmware can be loaded
  258. thanks to sysfs remoteproc entries. The remote processor
  259. can be started and stopped.
  260. This can be either built-in or a loadable module.
  261. If compiled as module (M), the module name is rcar_rproc.
  262. config ST_REMOTEPROC
  263. tristate "ST remoteproc support"
  264. depends on ARCH_STI
  265. select MAILBOX
  266. select STI_MBOX
  267. help
  268. Say y here to support ST's adjunct processors via the remote
  269. processor framework.
  270. This can be either built-in or a loadable module.
  271. config ST_SLIM_REMOTEPROC
  272. tristate
  273. config STM32_RPROC
  274. tristate "STM32 remoteproc support"
  275. depends on ARCH_STM32 || COMPILE_TEST
  276. depends on REMOTEPROC
  277. select MAILBOX
  278. help
  279. Say y here to support STM32 MCU processors via the
  280. remote processor framework.
  281. You want to say y here in order to enable AMP
  282. use-cases to run on your platform (dedicated firmware could be
  283. offloaded to remote MCU processors using this framework).
  284. This can be either built-in or a loadable module.
  285. config TI_K3_DSP_REMOTEPROC
  286. tristate "TI K3 DSP remoteproc support"
  287. depends on ARCH_K3 || COMPILE_TEST
  288. depends on TI_SCI_PROTOCOL || (COMPILE_TEST && TI_SCI_PROTOCOL=n)
  289. depends on OMAP2PLUS_MBOX
  290. help
  291. Say m here to support TI's C66x and C71x DSP remote processor
  292. subsystems on various TI K3 family of SoCs through the remote
  293. processor framework.
  294. It's safe to say N here if you're not interested in utilizing
  295. the DSP slave processors.
  296. config TI_K3_M4_REMOTEPROC
  297. tristate "TI K3 M4 remoteproc support"
  298. depends on ARCH_K3 || COMPILE_TEST
  299. depends on TI_SCI_PROTOCOL || (COMPILE_TEST && TI_SCI_PROTOCOL=n)
  300. depends on OMAP2PLUS_MBOX
  301. help
  302. Say m here to support TI's M4 remote processor subsystems
  303. on various TI K3 family of SoCs through the remote processor
  304. framework.
  305. It's safe to say N here if you're not interested in utilizing
  306. a remote processor.
  307. config TI_K3_R5_REMOTEPROC
  308. tristate "TI K3 R5 remoteproc support"
  309. depends on ARCH_K3 || COMPILE_TEST
  310. depends on TI_SCI_PROTOCOL || (COMPILE_TEST && TI_SCI_PROTOCOL=n)
  311. depends on OMAP2PLUS_MBOX
  312. help
  313. Say m here to support TI's R5F remote processor subsystems
  314. on various TI K3 family of SoCs through the remote processor
  315. framework.
  316. It's safe to say N here if you're not interested in utilizing
  317. a slave processor.
  318. config XLNX_R5_REMOTEPROC
  319. tristate "Xilinx R5 remoteproc support"
  320. depends on PM && ARCH_ZYNQMP
  321. select ZYNQMP_FIRMWARE
  322. select RPMSG_VIRTIO
  323. select MAILBOX
  324. select ZYNQMP_IPI_MBOX
  325. help
  326. Say y or m here to support Xilinx R5 remote processors via the remote
  327. processor framework.
  328. It's safe to say N if not interested in using RPU r5f cores.
  329. endif # REMOTEPROC
  330. endmenu