1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2009 Wind River Systems, Inc.
4 * Tom Rix <Tom.Rix@windriver.com>
6 * This work is derived from the linux 2.6.27 kernel source
7 * To fetch, use the kernel repository
8 * git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
11 * Below is the original's header including its copyright
13 * linux/arch/arm/plat-omap/gpio.c
15 * Support functions for OMAP GPIO
17 * Copyright (C) 2003-2005 Nokia Corporation
18 * Written by Juha Yrjölä <juha.yrjola@nokia.com>
23 #include <asm/arch/cpu.h>
27 /* Information about a GPIO bank */
28 struct omap_gpio_platdata {
30 ulong base; /* address of registers in physical memory */
31 const char *port_name;
40 extern const struct gpio_bank *const omap_gpio_bank;
43 * Check if gpio is valid.
45 * @param gpio GPIO number
46 * @return 1 if ok, 0 on error
48 int gpio_is_valid(int gpio);