| 
									
										
										
										
											2013-03-13 20:32:13 +09:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Renesas R-Car GPIO Support | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  *  Copyright (C) 2013 Magnus Damm | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU General Public License as published by | 
					
						
							|  |  |  |  * the Free Software Foundation; either version 2 of the License | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is distributed in the hope that it will be useful, | 
					
						
							|  |  |  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  |  * GNU General Public License for more details. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __GPIO_RCAR_H__
 | 
					
						
							|  |  |  | #define __GPIO_RCAR_H__
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct gpio_rcar_config { | 
					
						
							| 
									
										
										
										
											2013-05-10 16:48:36 +02:00
										 |  |  | 	int gpio_base; | 
					
						
							| 
									
										
										
										
											2013-03-13 20:32:13 +09:00
										 |  |  | 	unsigned int irq_base; | 
					
						
							|  |  |  | 	unsigned int number_of_pins; | 
					
						
							| 
									
										
										
										
											2013-03-10 03:27:00 +01:00
										 |  |  | 	const char *pctl_name; | 
					
						
							| 
									
										
										
										
											2013-05-24 18:47:24 +09:00
										 |  |  | 	unsigned has_both_edge_trigger:1; | 
					
						
							| 
									
										
										
										
											2013-03-13 20:32:13 +09:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-04-08 11:36:13 +02:00
										 |  |  | #define RCAR_GP_PIN(bank, pin)		(((bank) * 32) + (pin))
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-03-13 20:32:13 +09:00
										 |  |  | #endif /* __GPIO_RCAR_H__ */
 |