mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 03:58:17 +00:00 
			
		
		
		
	Introduce fdt_apply_ddrss_timings_patch() to allow board code to override DDR settings in the device tree prior to DDRSS driver probing. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Tested-by: John Ma <jma@phytec.com>
		
			
				
	
	
		
			29 lines
		
	
	
		
			512 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			512 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0-or-later */
 | |
| /*
 | |
|  * Copyright (C) 2024 PHYTEC Messtechnik GmbH
 | |
|  * Author: Wadim Egorov <w.egorov@phytec.de>
 | |
|  */
 | |
| 
 | |
| #ifndef K3_DDRSS_PATCH
 | |
| #define K3_DDRSS_PATCH
 | |
| 
 | |
| #include <linux/types.h>
 | |
| 
 | |
| struct ddr_reg {
 | |
| 	u32 off;
 | |
| 	u32 val;
 | |
| };
 | |
| 
 | |
| struct ddrss {
 | |
| 	struct ddr_reg *ctl_regs;
 | |
| 	u32 ctl_regs_num;
 | |
| 	struct ddr_reg *pi_regs;
 | |
| 	u32 pi_regs_num;
 | |
| 	struct ddr_reg *phy_regs;
 | |
| 	u32 phy_regs_num;
 | |
| };
 | |
| 
 | |
| int fdt_apply_ddrss_timings_patch(void *fdt, struct ddrss *ddrss);
 | |
| 
 | |
| #endif /* K3_DDRSS_PATCH */
 |