2 * Loongson GPIO Support
4 * Copyright (c) 2008 Richard Liu, STMicroelectronics <richard.liu@st.com>
5 * Copyright (c) 2008-2010 Arnaud Patard <apatard@mandriva.com>
6 * Copyright (c) 2014 Huacai Chen <chenhc@lemote.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
14 #ifndef __LOONGSON_GPIO_H
15 #define __LOONGSON_GPIO_H
17 #include <asm-generic/gpio.h>
19 #define gpio_get_value __gpio_get_value
20 #define gpio_set_value __gpio_set_value
21 #define gpio_cansleep __gpio_cansleep
23 /* The chip can do interrupt
24 * but it has not been tested and doc not clear
26 static inline int gpio_to_irq(int gpio)
31 static inline int irq_to_gpio(int gpio)
36 #endif /* __LOONGSON_GPIO_H */