| 
									
										
										
										
											2008-10-20 01:51:03 +02:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2012-08-29 10:16:55 -05:00
										 |  |  |  * arch/arm/plat-orion/include/plat/orion-gpio.h | 
					
						
							| 
									
										
										
										
											2008-10-20 01:51:03 +02:00
										 |  |  |  * | 
					
						
							|  |  |  |  * Marvell Orion SoC GPIO handling. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This file is licensed under the terms of the GNU General Public | 
					
						
							|  |  |  |  * License version 2.  This program is licensed "as is" without any | 
					
						
							|  |  |  |  * warranty of any kind, whether express or implied. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __PLAT_GPIO_H
 | 
					
						
							|  |  |  | #define __PLAT_GPIO_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-17 23:34:10 -10:00
										 |  |  | #include <linux/init.h>
 | 
					
						
							| 
									
										
										
										
											2011-08-24 00:43:16 +01:00
										 |  |  | #include <linux/types.h>
 | 
					
						
							| 
									
										
										
										
											2012-06-27 13:40:04 +02:00
										 |  |  | #include <linux/irqdomain.h>
 | 
					
						
							| 
									
										
										
										
											2008-10-20 01:51:03 +02:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Orion-specific GPIO API extensions. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | void orion_gpio_set_unused(unsigned pin); | 
					
						
							|  |  |  | void orion_gpio_set_blink(unsigned pin, int blink); | 
					
						
							| 
									
										
										
										
											2012-04-18 23:16:40 +02:00
										 |  |  | int orion_gpio_led_blink_set(unsigned gpio, int state, | 
					
						
							|  |  |  | 	unsigned long *delay_on, unsigned long *delay_off); | 
					
						
							| 
									
										
										
										
											2008-10-20 01:51:03 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-28 17:08:55 -07:00
										 |  |  | #define GPIO_INPUT_OK		(1 << 0)
 | 
					
						
							|  |  |  | #define GPIO_OUTPUT_OK		(1 << 1)
 | 
					
						
							| 
									
										
										
										
											2009-02-02 15:27:55 -05:00
										 |  |  | void orion_gpio_set_valid(unsigned pin, int mode); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-05-28 17:08:55 -07:00
										 |  |  | /* Initialize gpiolib. */ | 
					
						
							| 
									
										
										
										
											2012-06-27 13:40:04 +02:00
										 |  |  | void __init orion_gpio_init(struct device_node *np, | 
					
						
							|  |  |  | 			    int gpio_base, int ngpio, | 
					
						
							|  |  |  | 			    void __iomem *base, int mask_offset, | 
					
						
							|  |  |  | 			    int secondary_irq_base, | 
					
						
							|  |  |  | 			    int irq[4]); | 
					
						
							| 
									
										
										
										
											2008-10-20 01:51:03 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif
 |