xref: /openbmc/u-boot/arch/arm/include/asm/arch-omap3/gpio.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0 */
2080a46eaSAneesh V /*
3080a46eaSAneesh V  * Copyright (c) 2009 Wind River Systems, Inc.
4080a46eaSAneesh V  * Tom Rix <Tom.Rix@windriver.com>
5080a46eaSAneesh V  *
6080a46eaSAneesh V  * This work is derived from the linux 2.6.27 kernel source
7080a46eaSAneesh V  * To fetch, use the kernel repository
8080a46eaSAneesh V  * git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
9080a46eaSAneesh V  * Use the v2.6.27 tag.
10080a46eaSAneesh V  *
11080a46eaSAneesh V  * Below is the original's header including its copyright
12080a46eaSAneesh V  *
13080a46eaSAneesh V  *  linux/arch/arm/plat-omap/gpio.c
14080a46eaSAneesh V  *
15080a46eaSAneesh V  * Support functions for OMAP GPIO
16080a46eaSAneesh V  *
17080a46eaSAneesh V  * Copyright (C) 2003-2005 Nokia Corporation
18080a46eaSAneesh V  * Written by Juha Yrjölä <juha.yrjola@nokia.com>
19080a46eaSAneesh V  */
20080a46eaSAneesh V #ifndef _GPIO_OMAP3_H
21080a46eaSAneesh V #define _GPIO_OMAP3_H
22080a46eaSAneesh V 
23080a46eaSAneesh V #include <asm/omap_gpio.h>
24080a46eaSAneesh V 
2587bd05d7SAxel Lin #define OMAP_MAX_GPIO			192
2687bd05d7SAxel Lin 
27080a46eaSAneesh V #define OMAP34XX_GPIO1_BASE		0x48310000
28080a46eaSAneesh V #define OMAP34XX_GPIO2_BASE		0x49050000
29080a46eaSAneesh V #define OMAP34XX_GPIO3_BASE		0x49052000
30080a46eaSAneesh V #define OMAP34XX_GPIO4_BASE		0x49054000
31080a46eaSAneesh V #define OMAP34XX_GPIO5_BASE		0x49056000
32080a46eaSAneesh V #define OMAP34XX_GPIO6_BASE		0x49058000
33080a46eaSAneesh V 
34080a46eaSAneesh V #endif /* _GPIO_OMAP3_H */
35