Move the GPIO assignments for the U300 variants down to a local header file in the mach-u300 directory. There is no point in broadcasting this across the entire kernel. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			932 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			932 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (C) 2007-2011 ST-Ericsson AB
 | 
						|
 * License terms: GNU General Public License (GPL) version 2
 | 
						|
 * GPIO block resgister definitions and inline macros for
 | 
						|
 * U300 GPIO COH 901 335 or COH 901 571/3
 | 
						|
 * Author: Linus Walleij <linus.walleij@stericsson.com>
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef __MACH_U300_GPIO_U300_H
 | 
						|
#define __MACH_U300_GPIO_U300_H
 | 
						|
 | 
						|
/**
 | 
						|
 * enum u300_gpio_variant - the type of U300 GPIO employed
 | 
						|
 */
 | 
						|
enum u300_gpio_variant {
 | 
						|
	U300_GPIO_COH901335,
 | 
						|
	U300_GPIO_COH901571_3_BS335,
 | 
						|
	U300_GPIO_COH901571_3_BS365,
 | 
						|
};
 | 
						|
 | 
						|
/**
 | 
						|
 * struct u300_gpio_platform - U300 GPIO platform data
 | 
						|
 * @variant: IP block variant
 | 
						|
 * @ports: number of GPIO block ports
 | 
						|
 * @gpio_base: first GPIO number for this block (use a free range)
 | 
						|
 * @gpio_irq_base: first GPIO IRQ number for this block (use a free range)
 | 
						|
 */
 | 
						|
struct u300_gpio_platform {
 | 
						|
	enum u300_gpio_variant variant;
 | 
						|
	u8 ports;
 | 
						|
	int gpio_base;
 | 
						|
	int gpio_irq_base;
 | 
						|
};
 | 
						|
 | 
						|
#endif /* __MACH_U300_GPIO_U300_H */
 |