mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 03:58:17 +00:00 
			
		
		
		
	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>
		
			
				
	
	
		
			12 lines
		
	
	
		
			321 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			12 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);
 |