mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 03:58:17 +00:00 
			
		
		
		
	At present only root nodes in the device tree are scanned for devices. But some devices can have children. For example a SPI bus may have several children for each of its chip selects. Add a function which scans subnodes and binds devices for each one. This can be used for the root node scan also, so change it. A device can call this function in its bind() or probe() methods to bind its children. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			30 lines
		
	
	
		
			553 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			553 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2013 Google, Inc
 | |
|  *
 | |
|  * (C) Copyright 2012
 | |
|  * Pavel Herrmann <morpheus.ibis@gmail.com>
 | |
|  *
 | |
|  * SPDX-License-Identifier:	GPL-2.0+
 | |
|  */
 | |
| 
 | |
| #ifndef _DM_UCLASS_ID_H
 | |
| #define _DM_UCLASS_ID_H
 | |
| 
 | |
| /* TODO(sjg@chromium.org): this could be compile-time generated */
 | |
| enum uclass_id {
 | |
| 	/* These are used internally by driver model */
 | |
| 	UCLASS_ROOT = 0,
 | |
| 	UCLASS_DEMO,
 | |
| 	UCLASS_TEST,
 | |
| 	UCLASS_TEST_FDT,
 | |
| 	UCLASS_TEST_BUS,
 | |
| 
 | |
| 	/* U-Boot uclasses start here */
 | |
| 	UCLASS_GPIO,		/* Bank of general-purpose I/O pins */
 | |
| 
 | |
| 	UCLASS_COUNT,
 | |
| 	UCLASS_INVALID = -1,
 | |
| };
 | |
| 
 | |
| #endif
 |