mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 05:50:17 +00:00 
			
		
		
		
	Provide a public declaration of the board_spi_cs_gpio() callback for i.MX SPI chip selects to prevent the warning "Should it be static?" when compiling with "make C=1". Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
		
			
				
	
	
		
			18 lines
		
	
	
		
			292 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			292 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * Copyright 2011 Freescale Semiconductor, Inc.
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier:	GPL-2.0+
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef __MXC_SPI_H_
 | 
						|
#define __MXC_SPI_H_
 | 
						|
 | 
						|
/*
 | 
						|
 * Board-level chip-select callback
 | 
						|
 * Should return GPIO # to be used for chip-select
 | 
						|
 */
 | 
						|
 | 
						|
int board_spi_cs_gpio(unsigned bus, unsigned cs);
 | 
						|
 | 
						|
#endif
 |