mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-11-04 02:11:25 +01:00 
			
		
		
		
	At present we decode simple bus <ranges> using the following assumption: - parent #address-cells 1 - child #address-cells 1 - child #size-cells 1 However this might not always be the case. Update to use fdt_addr_t and fdt_size_t in 'struct simple_bus_plat', and use fdt_read_ranges() to correctly decode it according to the actual parent and child #address-cells / #size-cells under a Kconfig option CONFIG_SIMPLE_BUS_CORRECT_RANGE which can be turned on for any board that needs it. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			222 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			222 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0+ */
 | 
						|
/*
 | 
						|
 * Copyright 2020 Google LLC
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef __DM_SIMPLE_BUS_H
 | 
						|
#define __DM_SIMPLE_BUS_H
 | 
						|
 | 
						|
struct simple_bus_plat {
 | 
						|
	fdt_addr_t base;
 | 
						|
	fdt_size_t size;
 | 
						|
	fdt_addr_t target;
 | 
						|
};
 | 
						|
 | 
						|
#endif
 |