summaryrefslogtreecommitdiffstats
path: root/drivers/mailbox/apple-mailbox.c
Commit message (Collapse)AuthorAgeFilesLines
* mailbox: apple: Implement poll_data() operationHector Martin2022-09-151-3/+33
| | | | | | | | | This allows clients running in atomic context to poll for messages to arrive. Signed-off-by: Hector Martin <marcan@marcan.st> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
* mailbox: apple: Implement flush() operationHector Martin2022-09-151-0/+27
| | | | | | | | This allows clients to use the atomic-safe mailbox API style. Signed-off-by: Hector Martin <marcan@marcan.st> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
* mailbox: apple: Bind to generic compatiblesHector Martin2022-01-111-2/+2
| | | | | | | | | | | | | As with other blocks, we intend to have drivers bind to generic compatibles as long as there are no SoC-specific quirks. This allows forward-compatibility with future SoCs. No upstream DTs instantiate this yet, so it's still safe to make this breaking change. Signed-off-by: Hector Martin <marcan@marcan.st> Reviewed-by: Sven Peter <sven@svenpeter.dev> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
* mailbox: apple: Add driver for Apple mailboxesSven Peter2021-10-291-0/+384
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 <sven@svenpeter.dev> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>