blob: 220603db5a3858a7764e2233a5a0ef990be52eef [file] [log] [blame]
Steve Sakoman3b971522012-06-04 05:35:34 +00001/*
Wolfgang Denk1a459662013-07-08 09:37:19 +02002 * SPDX-License-Identifier: GPL-2.0+
Steve Sakoman3b971522012-06-04 05:35:34 +00003 */
4#ifndef _GPIO_AM33xx_H
5#define _GPIO_AM33xx_H
6
7#include <asm/omap_gpio.h>
8
Axel Lin87bd05d2013-06-21 18:54:25 +08009#define OMAP_MAX_GPIO 128
10
Steve Sakoman3b971522012-06-04 05:35:34 +000011#define AM33XX_GPIO0_BASE 0x44E07000
12#define AM33XX_GPIO1_BASE 0x4804C000
13#define AM33XX_GPIO2_BASE 0x481AC000
14#define AM33XX_GPIO3_BASE 0x481AE000
Dave Gerlachcd8341b2014-02-10 11:41:49 -050015#define AM33XX_GPIO4_BASE 0x48320000
16#define AM33XX_GPIO5_BASE 0x48322000
Lokesh Vutlab5e01ee2013-12-10 15:02:23 +053017
18/* GPIO CTRL register */
19#define GPIO_CTRL_DISABLEMODULE_SHIFT 0
20#define GPIO_CTRL_DISABLEMODULE_MASK (1 << 0)
21#define GPIO_CTRL_ENABLEMODULE GPIO_CTRL_DISABLEMODULE_MASK
22
23/* GPIO OUTPUT ENABLE register */
24#define GPIO_OE_ENABLE(x) (1 << x)
25
26/* GPIO SETDATAOUT register */
27#define GPIO_SETDATAOUT(x) (1 << x)
Steve Sakoman3b971522012-06-04 05:35:34 +000028#endif /* _GPIO_AM33xx_H */