• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2006 Andrew Victor
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8 
9 #ifndef __MACH_KS8659_GPIO_H
10 #define __MACH_KS8659_GPIO_H
11 
12 #include <linux/kernel.h>
13 
14 #define KS8695_GPIO_0		0
15 #define KS8695_GPIO_1		1
16 #define KS8695_GPIO_2		2
17 #define KS8695_GPIO_3		3
18 #define KS8695_GPIO_4		4
19 #define KS8695_GPIO_5		5
20 #define KS8695_GPIO_6		6
21 #define KS8695_GPIO_7		7
22 #define KS8695_GPIO_8		8
23 #define KS8695_GPIO_9		9
24 #define KS8695_GPIO_10		10
25 #define KS8695_GPIO_11		11
26 #define KS8695_GPIO_12		12
27 #define KS8695_GPIO_13		13
28 #define KS8695_GPIO_14		14
29 #define KS8695_GPIO_15		15
30 
31 /*
32  * Configure GPIO pin as external interrupt source.
33  */
34 extern int ks8695_gpio_interrupt(unsigned int pin, unsigned int type);
35 
36 /* Register the GPIOs */
37 extern void ks8695_register_gpios(void);
38 
39 #endif /* __MACH_KS8659_GPIO_H */
40