1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * (C) Copyright 2008 Stefan Roese <sr (at) denx.de>, DENX Software Engineering 4 */ 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) 19