Skip to contentSkip to conversation

mailbox: cix: add Cixtech mailbox driver

PATCH In review Guomin Chen 1 participant 1 message Mar 13, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 mailbox: cix: add Cixtech mailbox driver

From: Guomin Chen <[email protected]>

This commit adds a driver for the Cixtech mailbox controller. Cixtech mailbox controller is used to exchange message within multiple processors, such as AP, AUDIO DSP, SensorHub MCU, etc. It support 10 mailbox channels with different operating mode and every channel is unidirectional.

---
 drivers/mailbox/Kconfig       |  10 +
 drivers/mailbox/Makefile      |   2 +
 drivers/mailbox/cix-mailbox.c | 633 ++++++++++++++++++++++++++++++++++
 3 files changed, 645 insertions(+)
 create mode 100644 drivers/mailbox/cix-mailbox.c
drivers/mailbox/Kconfig +10 -0
index ed52db272f4d..d155ba5150f1 100644
@@ -330,4 +330,14 @@ config THEAD_TH1520_MBOX
 	  kernel is running, and E902 core used for power management among other
 	  things.
 
+config CIX_MBOX
+        tristate "CIX Mailbox"
+        depends on ARCH_CIX || COMPILE_TEST
+        depends on OF
+        help
+          Mailbox implementation for CIX IPC system. The controller supports
+          10 mailbox channels with different operating mode and every channel
+          is unidirectional. Say Y here if you want to use the CIX Mailbox
+          support.
+
 endif
drivers/mailbox/Makefile +2 -0
index 9a1542b55539..97a5a7068c10 100644
@@ -70,3 +70,5 @@ obj-$(CONFIG_QCOM_CPUCP_MBOX)	+= qcom-cpucp-mbox.o
 obj-$(CONFIG_QCOM_IPCC)		+= qcom-ipcc.o
 
 obj-$(CONFIG_THEAD_TH1520_MBOX)	+= mailbox-th1520.o
+
+obj-$(CONFIG_CIX_MBOX)	+= cix-mailbox.o
drivers/mailbox/cix-mailbox.c new file +633 -0

633 lines not on this page · raw message

Signature · 1 line
2.34.1