Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Stefan Roese | ee7a6ba | 2009-01-21 17:25:01 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering |
Stefan Roese | ee7a6ba | 2009-01-21 17:25:01 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #define GPIO1_BASE 0x00088000 |
| 7 | #define GPIO2_BASE 0x0008c000 |
| 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) |