soc: apple: mailbox: Add ASC/M3 mailbox driver
authorHector Martin <marcan@marcan.st>
Tue, 14 Mar 2023 10:45:45 +0000 (19:45 +0900)
committerHector Martin <marcan@marcan.st>
Thu, 23 Nov 2023 10:10:15 +0000 (19:10 +0900)
commit6e1457fcad3ff6b1885e64f5e393db5ff5ec2a42
treef912c4e733ffdf06eae1c0e6b08d6bcd1c2104a8
parent57b79ac9f43dc71fc8b55af51d1c9f469cb7a0de
soc: apple: mailbox: Add ASC/M3 mailbox driver

This new driver is based on the existing apple-mailbox driver, but
replaces the usage of the mailbox subsystem with directly exported
symbols.

As part of this refactor, this adds support for using the hardware FIFOs
(not supported in mailbox) and implicitly fixes a bunch of bugs caused
by bad interactions with the mailbox subsystem. It also adds runtime-PM
support.

The new config symbol is APPLE_MBOX, while the module name remains
identical ("apple-mailbox"). The configs are mutually exclusive in
Kconfig, to avoid conflicts.

Acked-by: Eric Curtin <ecurtin@redhat.com>
Acked-by: Neal Gompa <neal@gompa.dev>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/soc/apple/Kconfig
drivers/soc/apple/Makefile
drivers/soc/apple/mailbox.c [new file with mode: 0644]
drivers/soc/apple/mailbox.h [new file with mode: 0644]