Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  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. select MAILBOX
  26. help
  27. Say y here to support iMX's remote processors via the remote
  28. processor framework.
  29. It's safe to say N here.
  30. config IMX_DSP_REMOTEPROC
  31. tristate "i.MX DSP remoteproc support"
  32. depends on ARCH_MXC
  33. depends on HAVE_ARM_SMCCC
  34. select MAILBOX
  35. help
  36. Say y here to support iMX's DSP remote processors via the remote
  37. processor framework.
  38. It's safe to say N here.
  39. config INGENIC_VPU_RPROC
  40. tristate "Ingenic JZ47xx VPU remoteproc support"
  41. depends on MIPS || COMPILE_TEST
  42. help
  43. Say y or m here to support the VPU in the JZ47xx SoCs from Ingenic.
  44. This can be either built-in or a loadable module.
  45. If unsure say N.
  46. config MTK_SCP
  47. tristate "Mediatek SCP support"
  48. depends on ARCH_MEDIATEK || COMPILE_TEST
  49. select RPMSG_MTK_SCP
  50. help
  51. Say y here to support Mediatek's System Companion Processor (SCP) via
  52. the remote processor framework.
  53. It's safe to say N here.
  54. config OMAP_REMOTEPROC
  55. tristate "OMAP remoteproc support"
  56. depends on ARCH_OMAP4 || SOC_OMAP5 || SOC_DRA7XX
  57. depends on OMAP_IOMMU
  58. select MAILBOX
  59. select OMAP2PLUS_MBOX
  60. help
  61. Say y here to support OMAP's remote processors (dual M3
  62. and DSP on OMAP4) via the remote processor framework.
  63. Currently only supported on OMAP4.
  64. Usually you want to say Y here, in order to enable multimedia
  65. use-cases to run on your platform (multimedia codecs are
  66. offloaded to remote DSP processors using this framework).
  67. It's safe to say N here if you're not interested in multimedia
  68. offloading or just want a bare minimum kernel.
  69. config OMAP_REMOTEPROC_WATCHDOG
  70. bool "OMAP remoteproc watchdog timer"
  71. depends on OMAP_REMOTEPROC
  72. default n
  73. help
  74. Say Y here to enable watchdog timer for remote processors.
  75. This option controls the watchdog functionality for the remote
  76. processors in OMAP. Dedicated OMAP DMTimers are used by the remote
  77. processors and triggers the timer interrupt upon a watchdog
  78. detection.
  79. config WKUP_M3_RPROC
  80. tristate "AMx3xx Wakeup M3 remoteproc support"
  81. depends on SOC_AM33XX || SOC_AM43XX
  82. help
  83. Say y here to support Wakeup M3 remote processor on TI AM33xx
  84. and AM43xx family of SoCs.
  85. Required for Suspend-to-RAM on AM33xx and AM43xx SoCs. Also needed
  86. for deep CPUIdle states on AM33xx SoCs. Allows for loading of the
  87. firmware onto these remote processors.
  88. If unsure say N.
  89. config DA8XX_REMOTEPROC
  90. tristate "DA8xx/OMAP-L13x remoteproc support"
  91. depends on ARCH_DAVINCI_DA8XX
  92. depends on DMA_CMA
  93. help
  94. Say y here to support DA8xx/OMAP-L13x remote processors via the
  95. remote processor framework.
  96. You want to say y here in order to enable AMP
  97. use-cases to run on your platform (multimedia codecs are
  98. offloaded to remote DSP processors using this framework).
  99. This module controls the name of the firmware file that gets
  100. loaded on the DSP. This file must reside in the /lib/firmware
  101. directory. It can be specified via the module parameter
  102. da8xx_fw_name=<filename>, and if not specified will default to
  103. "rproc-dsp-fw".
  104. It's safe to say n here if you're not interested in multimedia
  105. offloading.
  106. config KEYSTONE_REMOTEPROC
  107. tristate "Keystone Remoteproc support"
  108. depends on ARCH_KEYSTONE
  109. help
  110. Say Y here here to support Keystone remote processors (DSP)
  111. via the remote processor framework.
  112. It's safe to say N here if you're not interested in the Keystone
  113. DSPs or just want to use a bare minimum kernel.
  114. config MESON_MX_AO_ARC_REMOTEPROC
  115. tristate "Amlogic Meson6/8/8b/8m2 AO ARC remote processor support"
  116. depends on HAS_IOMEM
  117. depends on (ARM && ARCH_MESON) || COMPILE_TEST
  118. select GENERIC_ALLOCATOR
  119. help
  120. Say m or y here to have support for the AO ARC remote processor
  121. on Amlogic Meson6/Meson8/Meson8b/Meson8m2 SoCs. This is
  122. typically used for system suspend.
  123. If unsure say N.
  124. config PRU_REMOTEPROC
  125. tristate "TI PRU remoteproc support"
  126. depends on TI_PRUSS
  127. default TI_PRUSS
  128. help
  129. Support for TI PRU remote processors present within a PRU-ICSS
  130. subsystem via the remote processor framework.
  131. Say Y or M here to support the Programmable Realtime Unit (PRU)
  132. processors on various TI SoCs. It's safe to say N here if you're
  133. not interested in the PRU or if you are unsure.
  134. config QCOM_PIL_INFO
  135. tristate
  136. config QCOM_RPROC_COMMON
  137. tristate "Qualcomm Technologies, Inc. Remote Proc Common Framework"
  138. config QCOM_Q6V5_COMMON
  139. tristate
  140. depends on ARCH_QCOM
  141. depends on QCOM_SMEM
  142. config QCOM_Q6V5_ADSP
  143. tristate "Qualcomm Technology Inc ADSP Peripheral Image Loader"
  144. depends on OF && ARCH_QCOM
  145. depends on QCOM_SMEM
  146. depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
  147. depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
  148. depends on QCOM_SYSMON || QCOM_SYSMON=n
  149. depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
  150. depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
  151. select MFD_SYSCON
  152. select QCOM_PIL_INFO
  153. select QCOM_MDT_LOADER
  154. select QCOM_Q6V5_COMMON
  155. select QCOM_RPROC_COMMON
  156. help
  157. Say y here to support the Peripheral Image Loader
  158. for the non-TrustZone part of Qualcomm Technology Inc. ADSP and CDSP
  159. remote processors. The TrustZone part is handled by QCOM_Q6V5_PAS
  160. driver.
  161. config QCOM_Q6V5_MSS
  162. tristate "Qualcomm Hexagon V5 self-authenticating modem subsystem support"
  163. depends on OF && ARCH_QCOM
  164. depends on QCOM_SMEM
  165. depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
  166. depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
  167. depends on QCOM_SYSMON || QCOM_SYSMON=n
  168. depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
  169. depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
  170. select MFD_SYSCON
  171. select QCOM_MDT_LOADER
  172. select QCOM_PIL_INFO
  173. select QCOM_Q6V5_COMMON
  174. select QCOM_RPROC_COMMON
  175. select QCOM_SCM
  176. help
  177. Say y here to support the Qualcomm self-authenticating modem
  178. subsystem based on Hexagon V5. The TrustZone based system is
  179. handled by QCOM_Q6V5_PAS driver.
  180. config QCOM_Q6V5_PAS
  181. tristate "Qualcomm Hexagon v5 Peripheral Authentication Service support"
  182. depends on OF && ARCH_QCOM
  183. depends on QCOM_SMEM
  184. depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
  185. depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
  186. depends on QCOM_SYSMON || QCOM_SYSMON=n
  187. depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
  188. depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
  189. select MFD_SYSCON
  190. select QCOM_PIL_INFO
  191. select QCOM_MDT_LOADER
  192. select QCOM_Q6V5_COMMON
  193. select QCOM_RPROC_COMMON
  194. select QCOM_SCM
  195. help
  196. Say y here to support the TrustZone based Peripheral Image Loader
  197. for the Qualcomm Hexagon v5 based remote processors. This is commonly
  198. used to control subsystems such as ADSP (Audio DSP),
  199. CDSP (Compute DSP), MPSS (Modem Peripheral SubSystem), and
  200. SLPI (Sensor Low Power Island).
  201. config QCOM_SPSS
  202. tristate "QTI Secure Subsystem Peripheral loading support"
  203. depends on OF && ARCH_QCOM
  204. depends on QCOM_SMEM
  205. depends on RPMSG_QCOM_SMD || (COMPILE_TEST && RPMSG_QCOM_SMD=n)
  206. depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
  207. depends on QCOM_SYSMON || QCOM_SYSMON=n
  208. select MFD_SYSCON
  209. select QCOM_MDT_LOADER
  210. select QCOM_Q6V5_COMMON
  211. select QCOM_RPROC_COMMON
  212. select QCOM_SCM
  213. help
  214. Say y here to support the TrustZone based Peripheral Image
  215. Loader for the Qualcomm Technologies, Inc. Secure Subsystem
  216. remote processor. This also supports remote processors that
  217. are booted before kernel comes up.
  218. config QCOM_Q6V5_WCSS
  219. tristate "Qualcomm Hexagon based WCSS Peripheral Image Loader"
  220. depends on OF && ARCH_QCOM
  221. depends on QCOM_SMEM
  222. depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
  223. depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
  224. depends on QCOM_SYSMON || QCOM_SYSMON=n
  225. depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
  226. depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
  227. select MFD_SYSCON
  228. select QCOM_MDT_LOADER
  229. select QCOM_PIL_INFO
  230. select QCOM_Q6V5_COMMON
  231. select QCOM_RPROC_COMMON
  232. select QCOM_SCM
  233. help
  234. Say y here to support the Qualcomm Peripheral Image Loader for the
  235. Hexagon V5 based WCSS remote processors on e.g. IPQ8074. This is
  236. a non-TrustZone wireless subsystem.
  237. config QCOM_SYSMON
  238. tristate "Qualcomm sysmon driver"
  239. depends on RPMSG
  240. depends on ARCH_QCOM
  241. depends on NET
  242. select QCOM_QMI_HELPERS
  243. help
  244. The sysmon driver implements a sysmon QMI client and a handler for
  245. the sys_mon SMD and GLINK channel, which are used for graceful
  246. shutdown, retrieving failure information and propagating information
  247. about other subsystems being shut down.
  248. Say y here if your system runs firmware on any other subsystems, e.g.
  249. modem or DSP.
  250. config QCOM_WCNSS_PIL
  251. tristate "Qualcomm WCNSS Peripheral Image Loader"
  252. depends on OF && ARCH_QCOM
  253. depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
  254. depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
  255. depends on QCOM_SMEM
  256. depends on QCOM_SYSMON || QCOM_SYSMON=n
  257. depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
  258. select QCOM_MDT_LOADER
  259. select QCOM_PIL_INFO
  260. select QCOM_RPROC_COMMON
  261. select QCOM_SCM
  262. help
  263. Say y here to support the Peripheral Image Loader for loading WCNSS
  264. firmware and boot the core on e.g. MSM8974, MSM8916. The firmware is
  265. verified and booted with the help of the Peripheral Authentication
  266. System (PAS) in TrustZone.
  267. config RCAR_REMOTEPROC
  268. tristate "Renesas R-Car Gen3 remoteproc support"
  269. depends on ARCH_RENESAS || COMPILE_TEST
  270. help
  271. Say y here to support R-Car realtime processor via the
  272. remote processor framework. An ELF firmware can be loaded
  273. thanks to sysfs remoteproc entries. The remote processor
  274. can be started and stopped.
  275. This can be either built-in or a loadable module.
  276. If compiled as module (M), the module name is rcar_rproc.
  277. config QCOM_PANIC_ON_NOTIF_TIMEOUT
  278. bool "Trigger kernel panic when notification timeout expires"
  279. help
  280. This is a debug feature where a kernel panic is triggered when
  281. communication between subsystems through sysmon is taking too
  282. long. This scneario can happen if the peripheral has died and
  283. is no longer responsive.
  284. Also trigger a kernel panic if invoking the callbacks registered
  285. with a particular subsystem's notifications by the subsystem
  286. notifier framework is taking too long.
  287. config RPROC_SYSMON_NOTIF_TIMEOUT
  288. int "Sysmon notifications timeout in ms"
  289. default 10000
  290. help
  291. The amount of time, in milliseconds, that should elapse between
  292. the start and end of sysmon notifications, before a warning
  293. is emitted.
  294. config RPROC_SSR_NOTIF_TIMEOUT
  295. int "SSR notifier timeout in ms"
  296. default 10000
  297. help
  298. The amount of time, in milliseconds, that should elapse between
  299. the start and end of SSR notifications through the subsystem
  300. notifier, before a warning is emitted.
  301. config QCOM_RPROC_BOTH_DUMPS
  302. bool "Collect both minidump and fulldump for subsystem crash"
  303. help
  304. Say y here to allow dumping both fulldump and minidump for the
  305. case where subsystem minidump is enabled by policy and the feature
  306. is enabled for a client. The case where minidump is not enabled,
  307. and fulldump is collected by default remains unaffected.
  308. config ST_REMOTEPROC
  309. tristate "ST remoteproc support"
  310. depends on ARCH_STI
  311. select MAILBOX
  312. select STI_MBOX
  313. help
  314. Say y here to support ST's adjunct processors via the remote
  315. processor framework.
  316. This can be either built-in or a loadable module.
  317. config ST_SLIM_REMOTEPROC
  318. tristate
  319. config STM32_RPROC
  320. tristate "STM32 remoteproc support"
  321. depends on ARCH_STM32
  322. depends on REMOTEPROC
  323. select MAILBOX
  324. help
  325. Say y here to support STM32 MCU processors via the
  326. remote processor framework.
  327. You want to say y here in order to enable AMP
  328. use-cases to run on your platform (dedicated firmware could be
  329. offloaded to remote MCU processors using this framework).
  330. This can be either built-in or a loadable module.
  331. config TI_K3_DSP_REMOTEPROC
  332. tristate "TI K3 DSP remoteproc support"
  333. depends on ARCH_K3
  334. select MAILBOX
  335. select OMAP2PLUS_MBOX
  336. help
  337. Say m here to support TI's C66x and C71x DSP remote processor
  338. subsystems on various TI K3 family of SoCs through the remote
  339. processor framework.
  340. It's safe to say N here if you're not interested in utilizing
  341. the DSP slave processors.
  342. config TI_K3_R5_REMOTEPROC
  343. tristate "TI K3 R5 remoteproc support"
  344. depends on ARCH_K3
  345. select MAILBOX
  346. select OMAP2PLUS_MBOX
  347. help
  348. Say m here to support TI's R5F remote processor subsystems
  349. on various TI K3 family of SoCs through the remote processor
  350. framework.
  351. It's safe to say N here if you're not interested in utilizing
  352. a slave processor.
  353. config MSM_QUIN_SUBSYSTEM_NOTIF_VIRT
  354. tristate "MSM QUIN Subsystem Notif Virt"
  355. depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
  356. select QCOM_RPROC_COMMON
  357. help
  358. This option enables the virtual MSM subsystem notification
  359. framework for the QUIN platform.
  360. The virtual MSM subsystem notif framework provides support for
  361. a subsystem to notify its clients of its state, when the clients
  362. are in a different virtual machine domain than the subsystem.
  363. config SEC_SENSORS_SSC
  364. bool "Enable Sensors Driver Support SEC features for SSC"
  365. depends on ADSP_FACTORY
  366. help
  367. Say y here to enable SEC features for Snapdragon Sensor Core(SSC)
  368. support SEC features for Qualcomm Technologies, Inc SoCs. SSC is used for
  369. exercising sensor use-cases.
  370. Say N if you do not want to support it.
  371. endif # REMOTEPROC
  372. endmenu