blob: de795b42232a8940720ed8e44ca3bc7da7431372 [file] [log] [blame]
Magnus Damm7fdda672010-02-10 20:10:55 +09001/*
2 * Generic GPIO API and pinmux table support
3 *
4 * Copyright (c) 2008 Magnus Damm
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.
9 */
10#ifndef __ASM_ARCH_GPIO_H
11#define __ASM_ARCH_GPIO_H
12
13#include <linux/kernel.h>
14#include <linux/errno.h>
Magnus Damm7fdda672010-02-10 20:10:55 +090015#include <linux/sh_pfc.h>
16
17#ifdef CONFIG_GPIOLIB
18
Magnus Damm7fdda672010-02-10 20:10:55 +090019static inline int irq_to_gpio(unsigned int irq)
20{
Paul Mundtcad3cde2010-11-04 12:19:11 +090021 return -ENOSYS;
Magnus Damm7fdda672010-02-10 20:10:55 +090022}
23
Russell King8f3c4532011-08-08 13:58:28 +010024#else
25
26#define __ARM_GPIOLIB_COMPLEX
27
Magnus Damm7fdda672010-02-10 20:10:55 +090028#endif /* CONFIG_GPIOLIB */
29
30#endif /* __ASM_ARCH_GPIO_H */