1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2006 Andrew Victor
6 #ifndef __MACH_KS8659_GPIO_H
7 #define __MACH_KS8659_GPIO_H
9 #include <linux/kernel.h>
11 #define KS8695_GPIO_0 0
12 #define KS8695_GPIO_1 1
13 #define KS8695_GPIO_2 2
14 #define KS8695_GPIO_3 3
15 #define KS8695_GPIO_4 4
16 #define KS8695_GPIO_5 5
17 #define KS8695_GPIO_6 6
18 #define KS8695_GPIO_7 7
19 #define KS8695_GPIO_8 8
20 #define KS8695_GPIO_9 9
21 #define KS8695_GPIO_10 10
22 #define KS8695_GPIO_11 11
23 #define KS8695_GPIO_12 12
24 #define KS8695_GPIO_13 13
25 #define KS8695_GPIO_14 14
26 #define KS8695_GPIO_15 15
29 * Configure GPIO pin as external interrupt source.
31 extern int ks8695_gpio_interrupt(unsigned int pin, unsigned int type);
33 /* Register the GPIOs */
34 extern void ks8695_register_gpios(void);
36 #endif /* __MACH_KS8659_GPIO_H */