blob: fbaed079b299e014be2e37b06be22892871b40aa [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
Oleksij Rempela0ff4aa62017-08-17 09:15:26 +020017config IMX_REMOTEPROC
18 tristate "IMX6/7 remoteproc support"
Fabio Estevam0aa25822019-06-03 20:46:27 -030019 depends on ARCH_MXC
Oleksij Rempela0ff4aa62017-08-17 09:15:26 +020020 help
21 Say y here to support iMX's remote processors (Cortex M4
22 on iMX7D) via the remote processor framework.
23
24 It's safe to say N here.
25
Erin Lo63c13d62019-11-12 19:03:25 +080026config MTK_SCP
27 tristate "Mediatek SCP support"
28 depends on ARCH_MEDIATEK
Pi-Hsun Shih70179962019-11-12 19:03:26 +080029 select RPMSG_MTK_SCP
Erin Lo63c13d62019-11-12 19:03:25 +080030 help
31 Say y here to support Mediatek's System Companion Processor (SCP) via
32 the remote processor framework.
33
34 It's safe to say N here.
35
Ohad Ben-Cohen34ed5a32011-10-20 18:53:35 +020036config OMAP_REMOTEPROC
37 tristate "OMAP remoteproc support"
Suman Anna0aaf1912020-03-24 13:00:27 +020038 depends on ARCH_OMAP4 || SOC_OMAP5 || SOC_DRA7XX
Ohad Ben-Cohen9cd8eb42012-02-28 13:04:33 +020039 depends on OMAP_IOMMU
Suman Annac869c752013-03-12 17:55:29 -050040 select MAILBOX
41 select OMAP2PLUS_MBOX
Ohad Ben-Cohen34ed5a32011-10-20 18:53:35 +020042 help
43 Say y here to support OMAP's remote processors (dual M3
44 and DSP on OMAP4) via the remote processor framework.
45
46 Currently only supported on OMAP4.
47
Pavel Macheka73d9462016-12-19 10:22:50 +010048 Usually you want to say Y here, in order to enable multimedia
Ohad Ben-Cohen34ed5a32011-10-20 18:53:35 +020049 use-cases to run on your platform (multimedia codecs are
50 offloaded to remote DSP processors using this framework).
51
Pavel Macheka73d9462016-12-19 10:22:50 +010052 It's safe to say N here if you're not interested in multimedia
Ohad Ben-Cohen34ed5a32011-10-20 18:53:35 +020053 offloading or just want a bare minimum kernel.
Ohad Ben-Cohen650d6562011-12-14 13:01:59 +020054
Suman Anna69591e42020-03-24 13:00:34 +020055config OMAP_REMOTEPROC_WATCHDOG
56 bool "OMAP remoteproc watchdog timer"
57 depends on OMAP_REMOTEPROC
58 default n
59 help
60 Say Y here to enable watchdog timer for remote processors.
61
62 This option controls the watchdog functionality for the remote
63 processors in OMAP. Dedicated OMAP DMTimers are used by the remote
64 processors and triggers the timer interrupt upon a watchdog
65 detection.
66
Dave Gerlacha01bc0d2015-05-22 15:45:30 -050067config WKUP_M3_RPROC
68 tristate "AMx3xx Wakeup M3 remoteproc support"
69 depends on SOC_AM33XX || SOC_AM43XX
Dave Gerlacha01bc0d2015-05-22 15:45:30 -050070 help
71 Say y here to support Wakeup M3 remote processor on TI AM33xx
72 and AM43xx family of SoCs.
73
74 Required for Suspend-to-RAM on AM33xx and AM43xx SoCs. Also needed
75 for deep CPUIdle states on AM33xx SoCs. Allows for loading of the
76 firmware onto these remote processors.
77 If unsure say N.
78
Robert Tivy13be5432013-04-09 14:20:21 -070079config DA8XX_REMOTEPROC
80 tristate "DA8xx/OMAP-L13x remoteproc support"
81 depends on ARCH_DAVINCI_DA8XX
Suman Annac51e8822017-05-18 17:08:59 -050082 depends on DMA_CMA
Robert Tivy13be5432013-04-09 14:20:21 -070083 help
84 Say y here to support DA8xx/OMAP-L13x remote processors via the
85 remote processor framework.
86
87 You want to say y here in order to enable AMP
88 use-cases to run on your platform (multimedia codecs are
89 offloaded to remote DSP processors using this framework).
90
91 This module controls the name of the firmware file that gets
92 loaded on the DSP. This file must reside in the /lib/firmware
93 directory. It can be specified via the module parameter
94 da8xx_fw_name=<filename>, and if not specified will default to
95 "rproc-dsp-fw".
96
97 It's safe to say n here if you're not interested in multimedia
98 offloading.
99
Suman Annae88bb8f2017-06-13 18:45:12 -0500100config KEYSTONE_REMOTEPROC
101 tristate "Keystone Remoteproc support"
102 depends on ARCH_KEYSTONE
Suman Annae88bb8f2017-06-13 18:45:12 -0500103 help
104 Say Y here here to support Keystone remote processors (DSP)
105 via the remote processor framework.
106
107 It's safe to say N here if you're not interested in the Keystone
108 DSPs or just want to use a bare minimum kernel.
109
Bjorn Andersson9e004f92018-09-24 16:45:25 -0700110config QCOM_RPROC_COMMON
111 tristate
112
113config QCOM_Q6V5_COMMON
114 tristate
115 depends on ARCH_QCOM
116 depends on QCOM_SMEM
117
Rohit kumardc160e42018-09-24 16:37:50 +0530118config QCOM_Q6V5_ADSP
119 tristate "Qualcomm Technology Inc ADSP Peripheral Image Loader"
120 depends on OF && ARCH_QCOM
121 depends on QCOM_SMEM
122 depends on RPMSG_QCOM_SMD || (COMPILE_TEST && RPMSG_QCOM_SMD=n)
123 depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
124 depends on QCOM_SYSMON || QCOM_SYSMON=n
125 select MFD_SYSCON
126 select QCOM_MDT_LOADER
127 select QCOM_Q6V5_COMMON
128 select QCOM_RPROC_COMMON
129 help
130 Say y here to support the Peripheral Image Loader
131 for the Qualcomm Technology Inc. ADSP remote processors.
132
Bjorn Anderssonef73c222018-09-24 16:45:26 -0700133config QCOM_Q6V5_MSS
134 tristate "Qualcomm Hexagon V5 self-authenticating modem subsystem support"
135 depends on OF && ARCH_QCOM
136 depends on QCOM_SMEM
137 depends on RPMSG_QCOM_SMD || (COMPILE_TEST && RPMSG_QCOM_SMD=n)
138 depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
139 depends on QCOM_SYSMON || QCOM_SYSMON=n
140 select MFD_SYSCON
YueHaibingf1d72c52019-07-04 14:46:49 +0800141 select QCOM_MDT_LOADER
Bjorn Anderssonef73c222018-09-24 16:45:26 -0700142 select QCOM_Q6V5_COMMON
Alex Elder5e0ef512020-03-16 17:51:21 -0500143 select QCOM_Q6V5_IPA_NOTIFY
Bjorn Anderssonef73c222018-09-24 16:45:26 -0700144 select QCOM_RPROC_COMMON
145 select QCOM_SCM
146 help
147 Say y here to support the Qualcomm self-authenticating modem
148 subsystem based on Hexagon V5.
149
Bjorn Andersson9e004f92018-09-24 16:45:25 -0700150config QCOM_Q6V5_PAS
151 tristate "Qualcomm Hexagon v5 Peripheral Authentication Service support"
Bjorn Anderssonb9e718e2016-08-22 22:57:44 -0700152 depends on OF && ARCH_QCOM
153 depends on QCOM_SMEM
Bjorn Andersson395a4802017-03-27 22:26:34 -0700154 depends on RPMSG_QCOM_SMD || (COMPILE_TEST && RPMSG_QCOM_SMD=n)
Bjorn Anderssoneea07022017-08-29 16:13:35 -0700155 depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
Bjorn Andersson1fb82ee2017-08-27 21:51:38 -0700156 depends on QCOM_SYSMON || QCOM_SYSMON=n
Bjorn Anderssonb9e718e2016-08-22 22:57:44 -0700157 select MFD_SYSCON
158 select QCOM_MDT_LOADER
Bjorn Andersson6103b1a2018-06-04 13:30:37 -0700159 select QCOM_Q6V5_COMMON
Bjorn Anderssonbde440e2017-01-27 02:28:32 -0800160 select QCOM_RPROC_COMMON
Arnd Bergmann8af1d632016-12-09 12:47:02 +0100161 select QCOM_SCM
Bjorn Anderssonb9e718e2016-08-22 22:57:44 -0700162 help
163 Say y here to support the TrustZone based Peripherial Image Loader
Bjorn Andersson9e004f92018-09-24 16:45:25 -0700164 for the Qualcomm Hexagon v5 based remote processors. This is commonly
165 used to control subsystems such as ADSP, Compute and Sensor.
Bjorn Andersson051fb702016-06-20 14:28:41 -0700166
Sricharan R3a3d4162018-06-07 22:57:11 +0530167config QCOM_Q6V5_WCSS
168 tristate "Qualcomm Hexagon based WCSS Peripheral Image Loader"
169 depends on OF && ARCH_QCOM
170 depends on QCOM_SMEM
Arnd Bergmann12c2b502018-07-18 13:16:26 +0200171 depends on RPMSG_QCOM_SMD || (COMPILE_TEST && RPMSG_QCOM_SMD=n)
Sricharan R3a3d4162018-06-07 22:57:11 +0530172 depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
173 depends on QCOM_SYSMON || QCOM_SYSMON=n
174 select MFD_SYSCON
175 select QCOM_MDT_LOADER
176 select QCOM_Q6V5_COMMON
177 select QCOM_RPROC_COMMON
178 select QCOM_SCM
179 help
180 Say y here to support the Qualcomm Peripheral Image Loader for the
181 Hexagon V5 based WCSS remote processors.
182
Alex Elderd7f5f3c2020-03-05 22:28:15 -0600183config QCOM_Q6V5_IPA_NOTIFY
184 tristate
Alex Elderd7f5f3c2020-03-05 22:28:15 -0600185
Bjorn Andersson1fb82ee2017-08-27 21:51:38 -0700186config QCOM_SYSMON
187 tristate "Qualcomm sysmon driver"
188 depends on RPMSG
189 depends on ARCH_QCOM
Arnd Bergmanndea4bd12018-02-22 16:57:38 +0100190 depends on NET
Bjorn Andersson1fb82ee2017-08-27 21:51:38 -0700191 select QCOM_QMI_HELPERS
192 help
193 The sysmon driver implements a sysmon QMI client and a handler for
194 the sys_mon SMD and GLINK channel, which are used for graceful
195 shutdown, retrieving failure information and propagating information
196 about other subsystems being shut down.
197
198 Say y here if your system runs firmware on any other subsystems, e.g.
199 modem or DSP.
200
Bjorn Anderssonaed361a2016-08-12 18:18:59 -0700201config QCOM_WCNSS_PIL
202 tristate "Qualcomm WCNSS Peripheral Image Loader"
203 depends on OF && ARCH_QCOM
Bjorn Andersson395a4802017-03-27 22:26:34 -0700204 depends on RPMSG_QCOM_SMD || (COMPILE_TEST && RPMSG_QCOM_SMD=n)
Arnd Bergmannab759b92017-09-11 21:54:17 +0200205 depends on RPMSG_QCOM_GLINK_SMEM || RPMSG_QCOM_GLINK_SMEM=n
Bjorn Anderssonaed361a2016-08-12 18:18:59 -0700206 depends on QCOM_SMEM
Bjorn Andersson1fb82ee2017-08-27 21:51:38 -0700207 depends on QCOM_SYSMON || QCOM_SYSMON=n
Bjorn Anderssonaed361a2016-08-12 18:18:59 -0700208 select QCOM_MDT_LOADER
Bjorn Anderssonbde440e2017-01-27 02:28:32 -0800209 select QCOM_RPROC_COMMON
Bjorn Anderssonaed361a2016-08-12 18:18:59 -0700210 select QCOM_SCM
Bjorn Anderssonaed361a2016-08-12 18:18:59 -0700211 help
212 Say y here to support the Peripheral Image Loader for the Qualcomm
213 Wireless Connectivity Subsystem.
214
Lee Jones63edb032016-01-12 12:46:18 +0000215config ST_REMOTEPROC
216 tristate "ST remoteproc support"
217 depends on ARCH_STI
Loic Pallardy231c8df2017-01-31 13:35:54 +0100218 select MAILBOX
219 select STI_MBOX
Lee Jones63edb032016-01-12 12:46:18 +0000220 help
221 Say y here to support ST's adjunct processors via the remote
222 processor framework.
223 This can be either built-in or a loadable module.
224
Peter Griffinbb6869b2016-10-18 10:39:06 +0100225config ST_SLIM_REMOTEPROC
226 tristate
Peter Griffine41ddbc2016-10-18 10:39:08 +0100227
Fabien Dessenne13140de2019-05-14 10:26:58 +0200228config STM32_RPROC
229 tristate "STM32 remoteproc support"
230 depends on ARCH_STM32
231 depends on REMOTEPROC
232 select MAILBOX
233 help
234 Say y here to support STM32 MCU processors via the
235 remote processor framework.
236
237 You want to say y here in order to enable AMP
238 use-cases to run on your platform (dedicated firmware could be
239 offloaded to remote MCU processors using this framework).
240
241 This can be either built-in or a loadable module.
242
Peter Griffine41ddbc2016-10-18 10:39:08 +0100243endif # REMOTEPROC
Peter Griffinbb6869b2016-10-18 10:39:06 +0100244
Ohad Ben-Cohen650d6562011-12-14 13:01:59 +0200245endmenu