Skip to content

Commit f89f9c5

Browse files
svenpeter42JassiBrar
authored andcommitted
mailbox: apple: Add driver for Apple mailboxes
Apple SoCs such as the M1 come with various co-processors. Mailboxes are used to communicate with those. This driver adds support for two variants of those mailboxes. Signed-off-by: Sven Peter <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 29848f3 commit f89f9c5

File tree

4 files changed

+417
-0
lines changed

4 files changed

+417
-0
lines changed

drivers/mailbox/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ menuconfig MAILBOX
88

99
if MAILBOX
1010

11+
config APPLE_MAILBOX
12+
tristate "Apple Mailbox driver"
13+
depends on ARCH_APPLE || (ARM64 && COMPILE_TEST)
14+
default ARCH_APPLE
15+
help
16+
Apple SoCs have various co-processors required for certain
17+
peripherals to work (NVMe, display controller, etc.). This
18+
driver adds support for the mailbox controller used to
19+
communicate with those.
20+
21+
Say Y here if you have a Apple SoC.
22+
1123
config ARM_MHU
1224
tristate "ARM MHU Mailbox"
1325
depends on ARM_AMBA

drivers/mailbox/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ obj-$(CONFIG_SUN6I_MSGBOX) += sun6i-msgbox.o
5858
obj-$(CONFIG_SPRD_MBOX) += sprd-mailbox.o
5959

6060
obj-$(CONFIG_QCOM_IPCC) += qcom-ipcc.o
61+
62+
obj-$(CONFIG_APPLE_MAILBOX) += apple-mailbox.o

0 commit comments

Comments
 (0)