Skip to content

Commit 3248c87

Browse files
committed
soc: apple: mailbox: Add ASC/M3 mailbox driver
Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 749d90f commit 3248c87

4 files changed

Lines changed: 498 additions & 0 deletions

File tree

drivers/soc/apple/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ config APPLE_PMGR_PWRSTATE
1717
controls for SoC devices. This driver manages them through the
1818
generic power domain framework, and also provides reset support.
1919

20+
config APPLE_MBOX
21+
tristate "Apple SoC mailboxes"
22+
depends on PM
23+
depends on ARCH_APPLE || (64BIT && COMPILE_TEST)
24+
depends on !APPLE_MAILBOX
25+
default ARCH_APPLE
26+
help
27+
Apple SoCs have various co-processors required for certain
28+
peripherals to work (NVMe, display controller, etc.). This
29+
driver adds support for the mailbox controller used to
30+
communicate with those.
31+
32+
Say Y here if you have a Apple SoC.
33+
2034
config APPLE_RTKIT
2135
tristate "Apple RTKit co-processor IPC protocol"
2236
depends on MAILBOX

drivers/soc/apple/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
obj-$(CONFIG_APPLE_PMGR_PWRSTATE) += apple-pmgr-pwrstate.o
33

4+
obj-$(CONFIG_APPLE_MBOX) += apple-mailbox.o
5+
apple-mailbox-y = mailbox.o
6+
47
obj-$(CONFIG_APPLE_RTKIT) += apple-rtkit.o
58
apple-rtkit-y = rtkit.o rtkit-crashlog.o
69

0 commit comments

Comments
 (0)