blob: 6ff0ce42c73a68d0662bdfca2e75d772cfdfcc63 [file] [log] [blame]
Stefan Roeseee7a6ba2009-01-21 17:25:01 +01001/*
2 * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Stefan Roeseee7a6ba2009-01-21 17:25:01 +01005 */
6
7#define GPIO1_BASE 0x00044000
8#define GPIO2_BASE 0x00048000
9
10/* Instances */
11#define GPIO_INSTANCES 2
12
13/* Relative offsets of the register adresses */
14#define GPIO_SWPORTA_DR_OFFS 0x00000000
15#define GPIO_SWPORTA_DR(base) ((base) + GPIO_SWPORTA_DR_OFFS)
16#define GPIO_SWPORTA_DDR_OFFS 0x00000004
17#define GPIO_SWPORTA_DDR(base) ((base) + GPIO_SWPORTA_DDR_OFFS)
18#define GPIO_EXT_PORTA_OFFS 0x00000050
19#define GPIO_EXT_PORTA(base) ((base) + GPIO_EXT_PORTA_OFFS)