blob: 1660197866531d79dc31d7cef0b011ae1c4343d9 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Kees Cookeb367cb2013-01-16 18:53:51 -08002menu "Remoteproc drivers"
Ohad Ben-Cohen650d6562011-12-14 13:01:59 +02003
Ohad Ben-Cohen400e64d2011-10-20 16:52:46 +02004config REMOTEPROC
Christoph Hellwig63341502019-08-30 08:43:12 +02005 bool "Support for Remote Processor subsystem"
Sjur Brændelanda1a7e0a2012-09-13 20:03:58 +02006 depends on HAS_DMA
Ohad Ben-Cohena2b950a2013-04-07 14:06:07 +03007 select CRC32
Robert Tivyc7426bc2013-03-28 18:41:43 -07008 select FW_LOADER
Ohad Ben-Cohen2ed6d292012-09-30 10:25:34 +02009 select VIRTIO
Sarangdhar Joshi2666ca92018-01-05 16:04:17 -080010 select WANT_DEV_COREDUMP
Pavel Macheka73d9462016-12-19 10:22:50 +010011 help
12 Support for remote processors (such as DSP coprocessors). These
13 are mainly used on embedded systems.
Ohad Ben-Cohen34ed5a32011-10-20 18:53:35 +020014
Peter Griffine41ddbc2016-10-18 10:39:08 +010015if REMOTEPROC
16
Siddharth Gupta44767702020-07-29 10:40:00 -070017config REMOTEPROC_CDEV
18 bool "Remoteproc character device interface"
19 help
20 Say y here to have a character device interface for the remoteproc
21 framework. Userspace can boot/shutdown remote processors through
22 this interface.
23
24 It's safe to say N if you don't want to use this interface.
25
Oleksij Rempela0ff4aa62017-08-17 09:15:26 +020026config IMX_REMOTEPROC
Peng Fan4ab8f962021-03-06 19:24:23 +080027 tristate "i.MX remoteproc support"
Fabio Estevam0aa25822019-06-03 20:46:27 -030028 depends on ARCH_MXC
Peng Fan1cd62392021-06-10 11:15:30 +080029 depends on HAVE_ARM_SMCCC
Wei Yongjun889cb0d2021-03-31 12:27:09 +000030 select MAILBOX
Oleksij Rempela0ff4aa62017-08-17 09:15:26 +020031 help
Peng Fan4ab8f962021-03-06 19:24:23 +080032 Say y here to support iMX's remote processors via the remote
33 processor framework.
Oleksij Rempela0ff4aa62017-08-17 09:15:26 +020034
35 It's safe to say N here.
36
Shengjiu Wangec0e55492021-10-11 17:20:14 +080037config IMX_DSP_REMOTEPROC
38 tristate "i.MX DSP remoteproc support"
39 depends on ARCH_MXC
40 depends on HAVE_ARM_SMCCC
41 select MAILBOX
42 help
43 Say y here to support iMX's DSP remote processors via the remote
44 processor framework.
45
46 It's safe to say N here.
47
Paul Cercueil48f0a1b2020-05-15 12:43:39 +020048config INGENIC_VPU_RPROC
49 tristate "Ingenic JZ47xx VPU remoteproc support"
50 depends on MIPS || COMPILE_TEST
51 help
52 Say y or m here to support the VPU in the JZ47xx SoCs from Ingenic.
53
54 This can be either built-in or a loadable module.
55 If unsure say N.
56
Erin Lo63c13d62019-11-12 19:03:25 +080057config MTK_SCP
58 tristate "Mediatek SCP support"
Alexandre Courbot9a4e6682020-09-15 10:29:11 +090059 depends on ARCH_MEDIATEK || COMPILE_TEST
Pi-Hsun Shih70179962019-11-12 19:03:26 +080060 select RPMSG_MTK_SCP
Erin Lo63c13d62019-11-12 19:03:25 +080061 help
62 Say y here to support Mediatek's System Companion Processor (SCP) via
63 the remote processor framework.
64
65 It's safe to say N here.
66
Ohad Ben-Cohen34ed5a32011-10-20 18:53:35 +020067config OMAP_REMOTEPROC
68 tristate "OMAP remoteproc support"
Suman Anna0aaf1912020-03-24 13:00:27 +020069 depends on ARCH_OMAP4 || SOC_OMAP5 || SOC_DRA7XX
Ohad Ben-Cohen9cd8eb42012-02-28 13:04:33 +020070 depends on OMAP_IOMMU
Suman Annac869c752013-03-12 17:55:29 -050071 select MAILBOX
72 select OMAP2PLUS_MBOX
Ohad Ben-Cohen34ed5a32011-10-20 18:53:35 +020073 help
74 Say y here to support OMAP's remote processors (dual M3
75 and DSP on OMAP4) via the remote processor framework.
76
77 Currently only supported on OMAP4.
78
Pavel Macheka73d9462016-12-19 10:22:50 +010079 Usually you want to say Y here, in order to enable multimedia
Ohad Ben-Cohen34ed5a32011-10-20 18:53:35 +020080 use-cases to run on your platform (multimedia codecs are
81 offloaded to remote DSP processors using this framework).
82
Pavel Macheka73d9462016-12-19 10:22:50 +010083 It's safe to say N here if you're not interested in multimedia
Ohad Ben-Cohen34ed5a32011-10-20 18:53:35 +020084 offloading or just want a bare minimum kernel.
Ohad Ben-Cohen650d6562011-12-14 13:01:59 +020085
Suman Anna69591e42020-03-24 13:00:34 +020086config OMAP_REMOTEPROC_WATCHDOG
87 bool "OMAP remoteproc watchdog timer"
88 depends on OMAP_REMOTEPROC
89 default n
90 help
91 Say Y here to enable watchdog timer for remote processors.
92
93 This option controls the watchdog functionality for the remote
94 processors in OMAP. Dedicated OMAP DMTimers are used by the remote
95 processors and triggers the timer interrupt upon a watchdog
96 detection.
97
Dave Gerlacha01bc0d2015-05-22 15:45:30 -050098config WKUP_M3_RPROC
99 tristate "AMx3xx Wakeup M3 remoteproc support"
100 depends on SOC_AM33XX || SOC_AM43XX
Dave Gerlacha01bc0d2015-05-22 15:45:30 -0500101 help
102 Say y here to support Wakeup M3 remote processor on TI AM33xx
103 and AM43xx family of SoCs.
104
105 Required for Suspend-to-RAM on AM33xx and AM43xx SoCs. Also needed
106 for deep CPUIdle states on AM33xx SoCs. Allows for loading of the
107 firmware onto these remote processors.
108 If unsure say N.
109
Robert Tivy13be5432013-04-09 14:20:21 -0700110config DA8XX_REMOTEPROC
111 tristate "DA8xx/OMAP-L13x remoteproc support"
112 depends on ARCH_DAVINCI_DA8XX
Suman Annac51e8822017-05-18 17:08:59 -0500113 depends on DMA_CMA
Robert Tivy13be5432013-04-09 14:20:21 -0700114 help
115 Say y here to support DA8xx/OMAP-L13x remote processors via the
116 remote processor framework.
117
118 You want to say y here in order to enable AMP
119 use-cases to run on your platform (multimedia codecs are
120 offloaded to remote DSP processors using this framework).
121
122 This module controls the name of the firmware file that gets
123 loaded on the DSP. This file must reside in the /lib/firmware
124 directory. It can be specified via the module parameter
125 da8xx_fw_name=<filename>, and if not specified will default to
126 "rproc-dsp-fw".
127
128 It's safe to say n here if you're not interested in multimedia
129 offloading.
130
Suman Annae88bb8f2017-06-13 18:45:12 -0500131config KEYSTONE_REMOTEPROC
132 tristate "Keystone Remoteproc support"
133 depends on ARCH_KEYSTONE
Suman Annae88bb8f2017-06-13 18:45:12 -0500134 help
135 Say Y here here to support Keystone remote processors (DSP)
136 via the remote processor framework.
137
138 It's safe to say N here if you're not interested in the Keystone
139 DSPs or just want to use a bare minimum kernel.
140
Martin Blumenstingl6cb58ea2021-09-21 21:25:57 +0200141config MESON_MX_AO_ARC_REMOTEPROC
142 tristate "Amlogic Meson6/8/8b/8m2 AO ARC remote processor support"
143 depends on HAS_IOMEM
144 depends on (ARM && ARCH_MESON) || COMPILE_TEST
145 select GENERIC_ALLOCATOR
146 help
147 Say m or y here to have support for the AO ARC remote processor
148 on Amlogic Meson6/Meson8/Meson8b/Meson8m2 SoCs. This is
149 typically used for system suspend.
150 If unsure say N.
151
Suman Annad4ce2de2020-12-08 15:09:58 +0100152config PRU_REMOTEPROC
153 tristate "TI PRU remoteproc support"
154 depends on TI_PRUSS
155 default TI_PRUSS
156 help
157 Support for TI PRU remote processors present within a PRU-ICSS
158 subsystem via the remote processor framework.
159
160 Say Y or M here to support the Programmable Realtime Unit (PRU)
161 processors on various TI SoCs. It's safe to say N here if you're
162 not interested in the PRU or if you are unsure.
163
Bjorn Andersson549b67d2020-06-22 12:19:39 -0700164config QCOM_PIL_INFO
165 tristate
166
Bjorn Andersson9e004f92018-09-24 16:45:25 -0700167config QCOM_RPROC_COMMON
168 tristate
169
170config QCOM_Q6V5_COMMON
171 tristate
172 depends on ARCH_QCOM
173 depends on QCOM_SMEM
174
Rohit kumardc160e42018-09-24 16:37:50 +0530175config QCOM_Q6V5_ADSP
176 tristate "Qualcomm Technology Inc ADSP Peripheral Image Loader"
177 depends on OF && ARCH_QCOM
178 depends on QCOM_SMEM
Stephen Boydfc1b6b62021-08-23 16:51:20 -0700179 depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
Rohit kumardc160e42018-09-24 16:37:50 +0530180 depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
181 depends on QCOM_SYSMON || QCOM_SYSMON=n
Arnd Bergmannbfb44502021-02-04 16:40:04 +0100182 depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
Randy Dunlapeee412e2022-01-14 17:13:38 -0800183 depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
Rohit kumardc160e42018-09-24 16:37:50 +0530184 select MFD_SYSCON
Bjorn Anderssond4c78d22020-06-22 12:19:40 -0700185 select QCOM_PIL_INFO
Rohit kumardc160e42018-09-24 16:37:50 +0530186 select QCOM_MDT_LOADER
187 select QCOM_Q6V5_COMMON
188 select QCOM_RPROC_COMMON
189 help
190 Say y here to support the Peripheral Image Loader
Shawn Guo9e19f44d2020-12-17 11:04:00 +0800191 for the non-TrustZone part of Qualcomm Technology Inc. ADSP and CDSP
192 remote processors. The TrustZone part is handled by QCOM_Q6V5_PAS
193 driver.
Rohit kumardc160e42018-09-24 16:37:50 +0530194
Bjorn Anderssonef73c222018-09-24 16:45:26 -0700195config QCOM_Q6V5_MSS
196 tristate "Qualcomm Hexagon V5 self-authenticating modem subsystem support"
197 depends on OF && ARCH_QCOM
198 depends on QCOM_SMEM
Stephen Boydfc1b6b62021-08-23 16:51:20 -0700199 depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
Bjorn Anderssonef73c222018-09-24 16:45:26 -0700200 depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
201 depends on QCOM_SYSMON || QCOM_SYSMON=n
Arnd Bergmannbfb44502021-02-04 16:40:04 +0100202 depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
Randy Dunlapeee412e2022-01-14 17:13:38 -0800203 depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
Bjorn Anderssonef73c222018-09-24 16:45:26 -0700204 select MFD_SYSCON
YueHaibingf1d72c52019-07-04 14:46:49 +0800205 select QCOM_MDT_LOADER
Bjorn Anderssond4c78d22020-06-22 12:19:40 -0700206 select QCOM_PIL_INFO
Bjorn Anderssonef73c222018-09-24 16:45:26 -0700207 select QCOM_Q6V5_COMMON
208 select QCOM_RPROC_COMMON
209 select QCOM_SCM
210 help
211 Say y here to support the Qualcomm self-authenticating modem
Shawn Guo9e19f44d2020-12-17 11:04:00 +0800212 subsystem based on Hexagon V5. The TrustZone based system is
213 handled by QCOM_Q6V5_PAS driver.
Bjorn Anderssonef73c222018-09-24 16:45:26 -0700214
Bjorn Andersson9e004f92018-09-24 16:45:25 -0700215config QCOM_Q6V5_PAS
216 tristate "Qualcomm Hexagon v5 Peripheral Authentication Service support"
Bjorn Anderssonb9e718e2016-08-22 22:57:44 -0700217 depends on OF && ARCH_QCOM
218 depends on QCOM_SMEM
Stephen Boydfc1b6b62021-08-23 16:51:20 -0700219 depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
Bjorn Anderssoneea07022017-08-29 16:13:35 -0700220 depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
Bjorn Andersson1fb82ee2017-08-27 21:51:38 -0700221 depends on QCOM_SYSMON || QCOM_SYSMON=n
Arnd Bergmannbfb44502021-02-04 16:40:04 +0100222 depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
Randy Dunlapeee412e2022-01-14 17:13:38 -0800223 depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
Bjorn Anderssonb9e718e2016-08-22 22:57:44 -0700224 select MFD_SYSCON
Bjorn Anderssond4c78d22020-06-22 12:19:40 -0700225 select QCOM_PIL_INFO
Bjorn Anderssonb9e718e2016-08-22 22:57:44 -0700226 select QCOM_MDT_LOADER
Bjorn Andersson6103b1a2018-06-04 13:30:37 -0700227 select QCOM_Q6V5_COMMON
Bjorn Anderssonbde440e2017-01-27 02:28:32 -0800228 select QCOM_RPROC_COMMON
Arnd Bergmann8af1d632016-12-09 12:47:02 +0100229 select QCOM_SCM
Bjorn Anderssonb9e718e2016-08-22 22:57:44 -0700230 help
Colin Ian Kingd247d182020-12-04 19:34:11 +0000231 Say y here to support the TrustZone based Peripheral Image Loader
Bjorn Andersson9e004f92018-09-24 16:45:25 -0700232 for the Qualcomm Hexagon v5 based remote processors. This is commonly
Shawn Guo9e19f44d2020-12-17 11:04:00 +0800233 used to control subsystems such as ADSP (Audio DSP),
234 CDSP (Compute DSP), MPSS (Modem Peripheral SubSystem), and
235 SLPI (Sensor Low Power Island).
Bjorn Andersson051fb702016-06-20 14:28:41 -0700236
Sricharan R3a3d4162018-06-07 22:57:11 +0530237config QCOM_Q6V5_WCSS
238 tristate "Qualcomm Hexagon based WCSS Peripheral Image Loader"
239 depends on OF && ARCH_QCOM
240 depends on QCOM_SMEM
Stephen Boydfc1b6b62021-08-23 16:51:20 -0700241 depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
Sricharan R3a3d4162018-06-07 22:57:11 +0530242 depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
243 depends on QCOM_SYSMON || QCOM_SYSMON=n
Arnd Bergmannbfb44502021-02-04 16:40:04 +0100244 depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
Randy Dunlapeee412e2022-01-14 17:13:38 -0800245 depends on QCOM_AOSS_QMP || QCOM_AOSS_QMP=n
Sricharan R3a3d4162018-06-07 22:57:11 +0530246 select MFD_SYSCON
247 select QCOM_MDT_LOADER
Bjorn Anderssond4c78d22020-06-22 12:19:40 -0700248 select QCOM_PIL_INFO
Sricharan R3a3d4162018-06-07 22:57:11 +0530249 select QCOM_Q6V5_COMMON
250 select QCOM_RPROC_COMMON
251 select QCOM_SCM
252 help
253 Say y here to support the Qualcomm Peripheral Image Loader for the
Shawn Guo9e19f44d2020-12-17 11:04:00 +0800254 Hexagon V5 based WCSS remote processors on e.g. IPQ8074. This is
255 a non-TrustZone wireless subsystem.
Sricharan R3a3d4162018-06-07 22:57:11 +0530256
Bjorn Andersson1fb82ee2017-08-27 21:51:38 -0700257config QCOM_SYSMON
258 tristate "Qualcomm sysmon driver"
259 depends on RPMSG
260 depends on ARCH_QCOM
Arnd Bergmanndea4bd12018-02-22 16:57:38 +0100261 depends on NET
Bjorn Andersson1fb82ee2017-08-27 21:51:38 -0700262 select QCOM_QMI_HELPERS
263 help
264 The sysmon driver implements a sysmon QMI client and a handler for
265 the sys_mon SMD and GLINK channel, which are used for graceful
266 shutdown, retrieving failure information and propagating information
267 about other subsystems being shut down.
268
269 Say y here if your system runs firmware on any other subsystems, e.g.
270 modem or DSP.
271
Bjorn Anderssonaed361a2016-08-12 18:18:59 -0700272config QCOM_WCNSS_PIL
273 tristate "Qualcomm WCNSS Peripheral Image Loader"
274 depends on OF && ARCH_QCOM
Stephen Boydfc1b6b62021-08-23 16:51:20 -0700275 depends on RPMSG_QCOM_SMD || RPMSG_QCOM_SMD=n
Arnd Bergmannab759b92017-09-11 21:54:17 +0200276 depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
Bjorn Anderssonaed361a2016-08-12 18:18:59 -0700277 depends on QCOM_SMEM
Bjorn Andersson1fb82ee2017-08-27 21:51:38 -0700278 depends on QCOM_SYSMON || QCOM_SYSMON=n
Arnd Bergmannbfb44502021-02-04 16:40:04 +0100279 depends on RPMSG_QCOM_GLINK || RPMSG_QCOM_GLINK=n
Bjorn Anderssonaed361a2016-08-12 18:18:59 -0700280 select QCOM_MDT_LOADER
Bjorn Anderssond4c78d22020-06-22 12:19:40 -0700281 select QCOM_PIL_INFO
Bjorn Anderssonbde440e2017-01-27 02:28:32 -0800282 select QCOM_RPROC_COMMON
Bjorn Anderssonaed361a2016-08-12 18:18:59 -0700283 select QCOM_SCM
Bjorn Anderssonaed361a2016-08-12 18:18:59 -0700284 help
Shawn Guo9e19f44d2020-12-17 11:04:00 +0800285 Say y here to support the Peripheral Image Loader for loading WCNSS
286 firmware and boot the core on e.g. MSM8974, MSM8916. The firmware is
287 verified and booted with the help of the Peripheral Authentication
288 System (PAS) in TrustZone.
Bjorn Anderssonaed361a2016-08-12 18:18:59 -0700289
Julien Massot285892a2021-12-07 17:58:29 +0100290config RCAR_REMOTEPROC
291 tristate "Renesas R-Car Gen3 remoteproc support"
292 depends on ARCH_RENESAS || COMPILE_TEST
293 help
294 Say y here to support R-Car realtime processor via the
295 remote processor framework. An ELF firmware can be loaded
296 thanks to sysfs remoteproc entries. The remote processor
297 can be started and stopped.
298 This can be either built-in or a loadable module.
299 If compiled as module (M), the module name is rcar_rproc.
300
Lee Jones63edb032016-01-12 12:46:18 +0000301config ST_REMOTEPROC
302 tristate "ST remoteproc support"
303 depends on ARCH_STI
Loic Pallardy231c8df2017-01-31 13:35:54 +0100304 select MAILBOX
305 select STI_MBOX
Lee Jones63edb032016-01-12 12:46:18 +0000306 help
307 Say y here to support ST's adjunct processors via the remote
308 processor framework.
309 This can be either built-in or a loadable module.
310
Peter Griffinbb6869b2016-10-18 10:39:06 +0100311config ST_SLIM_REMOTEPROC
312 tristate
Peter Griffine41ddbc2016-10-18 10:39:08 +0100313
Fabien Dessenne13140de2019-05-14 10:26:58 +0200314config STM32_RPROC
315 tristate "STM32 remoteproc support"
316 depends on ARCH_STM32
317 depends on REMOTEPROC
318 select MAILBOX
319 help
320 Say y here to support STM32 MCU processors via the
321 remote processor framework.
322
323 You want to say y here in order to enable AMP
324 use-cases to run on your platform (dedicated firmware could be
325 offloaded to remote MCU processors using this framework).
326
327 This can be either built-in or a loadable module.
328
Suman Anna6edbe022020-07-21 17:36:16 -0500329config TI_K3_DSP_REMOTEPROC
330 tristate "TI K3 DSP remoteproc support"
331 depends on ARCH_K3
332 select MAILBOX
333 select OMAP2PLUS_MBOX
334 help
335 Say m here to support TI's C66x and C71x DSP remote processor
336 subsystems on various TI K3 family of SoCs through the remote
337 processor framework.
338
339 It's safe to say N here if you're not interested in utilizing
340 the DSP slave processors.
341
Suman Anna6dedbd12020-10-02 18:42:32 -0500342config 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
352 It's safe to say N here if you're not interested in utilizing
353 a slave processor.
354
Peter Griffine41ddbc2016-10-18 10:39:08 +0100355endif # REMOTEPROC
Peter Griffinbb6869b2016-10-18 10:39:06 +0100356
Ohad Ben-Cohen650d6562011-12-14 13:01:59 +0200357endmenu