mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	Add support for ICID setting of qman portals and the required device tree fixups. Also fix an endiness issue in portal setup code. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			494 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			494 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0+ */
 | |
| /*
 | |
|  * Copyright 2018 NXP
 | |
|  */
 | |
| 
 | |
| #ifndef _FSL_PORTALS_H_
 | |
| #define _FSL_PORTALS_H_
 | |
| 
 | |
| struct qportal_info {
 | |
| 	u16	dicid;	/* DQRR ICID */
 | |
| 	u16	ficid;	/* frame data ICID */
 | |
| 	u16	icid;
 | |
| 	u8	sdest;
 | |
| };
 | |
| 
 | |
| #define SET_QP_INFO(streamid, dest) \
 | |
| 	{ .dicid = (streamid), .ficid = (streamid), .icid = (streamid), \
 | |
| 	.sdest = (dest) }
 | |
| 
 | |
| extern struct qportal_info qp_info[];
 | |
| void fdt_portal(void *blob, const char *compat, const char *container,
 | |
| 		u64 addr, u32 size);
 | |
| 
 | |
| #endif
 |