mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 22:26:12 +00:00 
			
		
		
		
	 284b018973
			
		
	
	
		284b018973
		
	
	
	
	
		
			
			This patch adds support for populating an SPI bus based on data in the OF device tree. This is useful for powerpc platforms which use the device tree instead of discrete code for describing platform layout. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
		
			
				
	
	
		
			19 lines
		
	
	
		
			406 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			406 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * OpenFirmware SPI support routines
 | |
|  * Copyright (C) 2008 Secret Lab Technologies Ltd.
 | |
|  *
 | |
|  * Support routines for deriving SPI device attachments from the device
 | |
|  * tree.
 | |
|  */
 | |
| 
 | |
| #ifndef __LINUX_OF_SPI_H
 | |
| #define __LINUX_OF_SPI_H
 | |
| 
 | |
| #include <linux/of.h>
 | |
| #include <linux/spi/spi.h>
 | |
| 
 | |
| extern void of_register_spi_devices(struct spi_master *master,
 | |
| 				    struct device_node *np);
 | |
| 
 | |
| #endif /* __LINUX_OF_SPI */
 |