1/*
2 * Loongson GPIO Support
3 *
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>
7 *
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.
12 */
13
14#ifndef __LOONGSON_GPIO_H
15#define __LOONGSON_GPIO_H
16
17#include <asm-generic/gpio.h>
18
19#define gpio_get_value __gpio_get_value
20#define gpio_set_value __gpio_set_value
21#define gpio_cansleep __gpio_cansleep
22
23/* The chip can do interrupt
24 * but it has not been tested and doc not clear
25 */
26static inline int gpio_to_irq(int gpio)
27{
28	return -EINVAL;
29}
30
31static inline int irq_to_gpio(int gpio)
32{
33	return -EINVAL;
34}
35
36#endif	/* __LOONGSON_GPIO_H */
37