arm: apple: Add RTKit support
authorMark Kettenis <kettenis@openbsd.org>
Sat, 22 Jan 2022 19:38:14 +0000 (20:38 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 10 Feb 2022 21:44:23 +0000 (16:44 -0500)
commit02e2588d3f8fed7bf25ac1677072dd607c4dd72e
tree48e35dbdbdc8aa221968d62db81d5843d180bb78
parenta4bd5e4120d6389476c078076ce2746e3058037a
arm: apple: Add RTKit support

Most Apple IOPs run a firmware that is based on what Apple calls
RTKit. RTKit implements a common mailbox protocol.  This code
provides an implementation of the AP side of this protocol,
providing a function to initialize RTKit-based firmwares as well
as a function to do a clean shutdown of this firmware.

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested on: Macbook Air M1
Tested-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/arch-apple/rtkit.h [new file with mode: 0644]
arch/arm/mach-apple/Makefile
arch/arm/mach-apple/rtkit.c [new file with mode: 0644]