blob: 43752c3c976a51d1707f011725bc8788ec9e76de [file] [log] [blame]
Stefan Roese2a61eff2009-01-21 17:25:01 +01001/*
2 * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Stefan Roese2a61eff2009-01-21 17:25:01 +01005 */
6
7#define GPIO1_BASE 0x00088000
8#define GPIO2_BASE 0x0008c000
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)