xref: /linux-6.15/drivers/mailbox/Kconfig (revision e4b1d67e)
1# SPDX-License-Identifier: GPL-2.0-only
2menuconfig MAILBOX
3	bool "Mailbox Hardware Support"
4	help
5	  Mailbox is a framework to control hardware communication between
6	  on-chip processors through queued messages and interrupt driven
7	  signals. Say Y if your platform supports hardware mailboxes.
8
9if MAILBOX
10
11config ARM_MHU
12	tristate "ARM MHU Mailbox"
13	depends on ARM_AMBA
14	help
15	  Say Y here if you want to build the ARM MHU controller driver.
16	  The controller has 3 mailbox channels, the last of which can be
17	  used in Secure mode only.
18
19config ARM_MHU_V2
20	tristate "ARM MHUv2 Mailbox"
21	depends on ARM_AMBA
22	help
23	  Say Y here if you want to build the ARM MHUv2 controller driver,
24	  which provides unidirectional mailboxes between processing elements.
25
26config ARM_MHU_V3
27	tristate "ARM MHUv3 Mailbox"
28	depends on ARM64 || COMPILE_TEST
29	depends on HAS_IOMEM || COMPILE_TEST
30	depends on OF
31	help
32	  Say Y here if you want to build the ARM MHUv3 controller driver,
33	  which provides unidirectional mailboxes between processing elements.
34
35	  ARM MHUv3 controllers can implement a varying number of extensions
36	  that provides different means of transports: supported extensions
37	  will be discovered and possibly managed at probe-time.
38
39config IMX_MBOX
40	tristate "i.MX Mailbox"
41	depends on ARCH_MXC || COMPILE_TEST
42	help
43	  Mailbox implementation for i.MX Messaging Unit (MU).
44
45config PLATFORM_MHU
46	tristate "Platform MHU Mailbox"
47	depends on OF
48	depends on HAS_IOMEM
49	help
50	  Say Y here if you want to build a platform specific variant MHU
51	  controller driver.
52	  The controller has a maximum of 3 mailbox channels, the last of
53	  which can be used in Secure mode only.
54
55config PL320_MBOX
56	bool "ARM PL320 Mailbox"
57	depends on ARM_AMBA
58	help
59	  An implementation of the ARM PL320 Interprocessor Communication
60	  Mailbox (IPCM), tailored for the Calxeda Highbank. It is used to
61	  send short messages between Highbank's A9 cores and the EnergyCore
62	  Management Engine, primarily for cpufreq. Say Y here if you want
63	  to use the PL320 IPCM support.
64
65config ARMADA_37XX_RWTM_MBOX
66	tristate "Armada 37xx rWTM BIU Mailbox"
67	depends on ARCH_MVEBU || COMPILE_TEST
68	depends on OF
69	help
70	  Mailbox implementation for communication with the the firmware
71	  running on the Cortex-M3 rWTM secure processor of the Armada 37xx
72	  SOC. Say Y here if you are building for such a device (for example
73	  the Turris Mox router).
74
75config OMAP2PLUS_MBOX
76	tristate "OMAP2+ Mailbox framework support"
77	depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST
78	help
79	  Mailbox implementation for OMAP family chips with hardware for
80	  interprocessor communication involving DSP, IVA1.0 and IVA2 in
81	  OMAP2/3; or IPU, IVA HD and DSP in OMAP4/5. Say Y here if you
82	  want to use OMAP2+ Mailbox framework support.
83
84config ROCKCHIP_MBOX
85	bool "Rockchip Soc Integrated Mailbox Support"
86	depends on ARCH_ROCKCHIP || COMPILE_TEST
87	help
88	  This driver provides support for inter-processor communication
89	  between CPU cores and MCU processor on Some Rockchip SOCs.
90	  Please check it that the Soc you use have Mailbox hardware.
91	  Say Y here if you want to use the Rockchip Mailbox support.
92
93config PCC
94	bool "Platform Communication Channel Driver"
95	depends on ACPI
96	default n
97	help
98	  ACPI 5.0+ spec defines a generic mode of communication
99	  between the OS and a platform such as the BMC. This medium
100	  (PCC) is typically used by CPPC (ACPI CPU Performance management),
101	  RAS (ACPI reliability protocol) and MPST (ACPI Memory power
102	  states). Select this driver if your platform implements the
103	  PCC clients mentioned above.
104
105config ALTERA_MBOX
106	tristate "Altera Mailbox"
107	depends on HAS_IOMEM
108	help
109	  An implementation of the Altera Mailbox soft core. It is used
110	  to send message between processors. Say Y here if you want to use the
111	  Altera mailbox support.
112
113config BCM2835_MBOX
114	tristate "BCM2835 Mailbox"
115	depends on ARCH_BCM2835
116	help
117	  An implementation of the BCM2385 Mailbox.  It is used to invoke
118	  the services of the Videocore. Say Y here if you want to use the
119	  BCM2835 Mailbox.
120
121config STI_MBOX
122	tristate "STI Mailbox framework support"
123	depends on ARCH_STI && OF
124	help
125	  Mailbox implementation for STMicroelectonics family chips with
126	  hardware for interprocessor communication.
127
128config TI_MESSAGE_MANAGER
129	tristate "Texas Instruments Message Manager Driver"
130	depends on ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST
131	default ARCH_K3
132	help
133	  An implementation of Message Manager slave driver for Keystone
134	  and K3 architecture SoCs from Texas Instruments. Message Manager
135	  is a communication entity found on few of Texas Instrument's keystone
136	  and K3 architecture SoCs. These may be used for communication between
137	  multiple processors within the SoC. Select this driver if your
138	  platform has support for the hardware block.
139
140config HI3660_MBOX
141	tristate "Hi3660 Mailbox" if EXPERT
142	depends on (ARCH_HISI || COMPILE_TEST)
143	depends on OF
144	default ARCH_HISI
145	help
146	  An implementation of the hi3660 mailbox. It is used to send message
147	  between application processors and other processors/MCU/DSP. Select
148	  Y here if you want to use Hi3660 mailbox controller.
149
150config HI6220_MBOX
151	tristate "Hi6220 Mailbox" if EXPERT
152	depends on (ARCH_HISI || COMPILE_TEST)
153	depends on OF
154	default ARCH_HISI
155	help
156	  An implementation of the hi6220 mailbox. It is used to send message
157	  between application processors and MCU. Say Y here if you want to
158	  build Hi6220 mailbox controller driver.
159
160config MAILBOX_TEST
161	tristate "Mailbox Test Client"
162	depends on OF
163	depends on HAS_IOMEM
164	help
165	  Test client to help with testing new Controller driver
166	  implementations.
167
168config POLARFIRE_SOC_MAILBOX
169	tristate "PolarFire SoC (MPFS) Mailbox"
170	depends on HAS_IOMEM
171	depends on MFD_SYSCON
172	depends on ARCH_MICROCHIP_POLARFIRE || COMPILE_TEST
173	help
174	  This driver adds support for the PolarFire SoC (MPFS) mailbox controller.
175
176	  To compile this driver as a module, choose M here. the
177	  module will be called mailbox-mpfs.
178
179	  If unsure, say N.
180
181config MCHP_SBI_IPC_MBOX
182	tristate "Microchip Inter-processor Communication (IPC) SBI driver"
183	depends on RISCV_SBI || COMPILE_TEST
184	depends on ARCH_MICROCHIP
185	help
186	  Mailbox implementation for Microchip devices with an
187	  Inter-process communication (IPC) controller.
188
189	  To compile this driver as a module, choose M here. the
190	  module will be called mailbox-mchp-ipc-sbi.
191
192	  If unsure, say N.
193
194config QCOM_APCS_IPC
195	tristate "Qualcomm APCS IPC driver"
196	depends on ARCH_QCOM || COMPILE_TEST
197	help
198	  Say y here to enable support for the APCS IPC mailbox driver,
199	  providing an interface for invoking the inter-process communication
200	  signals from the application processor to other masters.
201
202config TEGRA_HSP_MBOX
203	bool "Tegra HSP (Hardware Synchronization Primitives) Driver"
204	depends on ARCH_TEGRA
205	help
206	  The Tegra HSP driver is used for the interprocessor communication
207	  between different remote processors and host processors on Tegra186
208	  and later SoCs. Say Y here if you want to have this support.
209	  If unsure say N.
210
211config XGENE_SLIMPRO_MBOX
212	tristate "APM SoC X-Gene SLIMpro Mailbox Controller"
213	depends on ARCH_XGENE
214	help
215	  An implementation of the APM X-Gene Interprocessor Communication
216	  Mailbox (IPCM) between the ARM 64-bit cores and SLIMpro controller.
217	  It is used to send short messages between ARM64-bit cores and
218	  the SLIMpro Management Engine, primarily for PM. Say Y here if you
219	  want to use the APM X-Gene SLIMpro IPCM support.
220
221config BCM_PDC_MBOX
222	tristate "Broadcom FlexSparx DMA Mailbox"
223	depends on ARCH_BCM_IPROC || COMPILE_TEST
224	help
225	  Mailbox implementation for the Broadcom FlexSparx DMA ring manager,
226	  which provides access to various offload engines on Broadcom
227	  SoCs, including FA2/FA+ on Northstar Plus and PDC on Northstar 2.
228
229config BCM_FLEXRM_MBOX
230	tristate "Broadcom FlexRM Mailbox"
231	depends on ARM64
232	depends on ARCH_BCM_IPROC || COMPILE_TEST
233	select GENERIC_MSI_IRQ
234	default m if ARCH_BCM_IPROC
235	help
236	  Mailbox implementation of the Broadcom FlexRM ring manager,
237	  which provides access to various offload engines on Broadcom
238	  SoCs. Say Y here if you want to use the Broadcom FlexRM.
239
240config STM32_IPCC
241	tristate "STM32 IPCC Mailbox"
242	depends on MACH_STM32MP157 || COMPILE_TEST
243	help
244	  Mailbox implementation for STMicroelectonics STM32 family chips
245	  with hardware for Inter-Processor Communication Controller (IPCC)
246	  between processors. Say Y here if you want to have this support.
247
248config MTK_ADSP_MBOX
249	tristate "MediaTek ADSP Mailbox Controller"
250	depends on ARCH_MEDIATEK || COMPILE_TEST
251	help
252          Say yes here to add support for "MediaTek ADSP Mailbox Controller.
253          This mailbox driver is used to send notification or short message
254          between processors with ADSP. It will place the message to share
255	  buffer and will access the ipc control.
256
257config MTK_CMDQ_MBOX
258	tristate "MediaTek CMDQ Mailbox Support"
259	depends on ARCH_MEDIATEK || COMPILE_TEST
260	select MTK_INFRACFG
261	help
262	  Say yes here to add support for the MediaTek Command Queue (CMDQ)
263	  mailbox driver. The CMDQ is used to help read/write registers with
264	  critical time limitation, such as updating display configuration
265	  during the vblank.
266
267config ZYNQMP_IPI_MBOX
268	tristate "Xilinx ZynqMP IPI Mailbox"
269	depends on ARCH_ZYNQMP && OF
270	help
271	  Say yes here to add support for Xilinx IPI mailbox driver.
272	  This mailbox driver is used to send notification or short message
273	  between processors with Xilinx ZynqMP IPI. It will place the
274	  message to the IPI buffer and will access the IPI control
275	  registers to kick the other processor or enquire status.
276
277config SUN6I_MSGBOX
278	tristate "Allwinner sun6i/sun8i/sun9i/sun50i Message Box"
279	depends on ARCH_SUNXI || COMPILE_TEST
280	default ARCH_SUNXI
281	help
282	  Mailbox implementation for the hardware message box present in
283	  various Allwinner SoCs. This mailbox is used for communication
284	  between the application CPUs and the power management coprocessor.
285
286config SPRD_MBOX
287	tristate "Spreadtrum Mailbox"
288	depends on ARCH_SPRD || COMPILE_TEST
289	help
290	  Mailbox driver implementation for the Spreadtrum platform. It is used
291	  to send message between application processors and MCU. Say Y here if
292	  you want to build the Spreatrum mailbox controller driver.
293
294config QCOM_CPUCP_MBOX
295	tristate "Qualcomm Technologies, Inc. CPUCP mailbox driver"
296	depends on (ARCH_QCOM || COMPILE_TEST) && 64BIT
297	help
298	  Qualcomm Technologies, Inc. CPUSS Control Processor (CPUCP) mailbox
299	  controller driver enables communication between AP and CPUCP. Say
300	  Y here if you want to build this driver.
301
302config QCOM_IPCC
303	tristate "Qualcomm Technologies, Inc. IPCC driver"
304	depends on ARCH_QCOM || COMPILE_TEST
305	help
306	  Qualcomm Technologies, Inc. Inter-Processor Communication Controller
307	  (IPCC) driver for MSM devices. The driver provides mailbox support for
308	  sending interrupts to the clients. On the other hand, the driver also
309	  acts as an interrupt controller for receiving interrupts from clients.
310	  Say Y here if you want to build this driver.
311
312config THEAD_TH1520_MBOX
313	tristate "T-head TH1520 Mailbox"
314	depends on ARCH_THEAD || COMPILE_TEST
315	help
316	  Mailbox driver implementation for the Thead TH-1520 platform. Enables
317	  two cores within the SoC to communicate and coordinate by passing
318	  messages. Could be used to communicate between E910 core, on which the
319	  kernel is running, and E902 core used for power management among other
320	  things.
321
322endif
323