Stefan Roese | ee7a6ba | 2009-01-21 17:25:01 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | ee7a6ba | 2009-01-21 17:25:01 +0100 | [diff] [blame] | 5 | */ |
| 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) |