mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 22:33:18 +00:00
02e2588d3f
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>
11 lines
321 B
C
11 lines
321 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2021 Mark Kettenis <kettenis@openbsd.org>
|
|
*/
|
|
|
|
#define APPLE_RTKIT_PWR_STATE_SLEEP 0x01
|
|
#define APPLE_RTKIT_PWR_STATE_QUIESCED 0x10
|
|
#define APPLE_RTKIT_PWR_STATE_ON 0x20
|
|
|
|
int apple_rtkit_init(struct mbox_chan *);
|
|
int apple_rtkit_shutdown(struct mbox_chan *, int);
|