blob: b1859a47c4d13e42948c7f121dcf100ea742299f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefan Roeseee7a6ba2009-01-21 17:25:01 +01002/*
3 * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
Stefan Roeseee7a6ba2009-01-21 17:25:01 +01004 */
5
6#define GPIO1_BASE 0x00044000
7#define GPIO2_BASE 0x00048000
8
9/* Instances */
10#define GPIO_INSTANCES 2
11
12/* Relative offsets of the register adresses */
13#define GPIO_SWPORTA_DR_OFFS 0x00000000
14#define GPIO_SWPORTA_DR(base) ((base) + GPIO_SWPORTA_DR_OFFS)
15#define GPIO_SWPORTA_DDR_OFFS 0x00000004
16#define GPIO_SWPORTA_DDR(base) ((base) + GPIO_SWPORTA_DDR_OFFS)
17#define GPIO_EXT_PORTA_OFFS 0x00000050
18#define GPIO_EXT_PORTA(base) ((base) + GPIO_EXT_PORTA_OFFS)