xref: /rk3399_rockchip-uboot/board/micronas/vct/vcth/reg_gpio.h (revision 326ea986ac150acdc7656d57fca647db80b50158)
12a61eff6SStefan Roese /*
22a61eff6SStefan Roese  * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
32a61eff6SStefan Roese  *
4*1a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
52a61eff6SStefan Roese  */
62a61eff6SStefan Roese 
72a61eff6SStefan Roese #define GPIO1_BASE		0x00088000
82a61eff6SStefan Roese #define GPIO2_BASE		0x0008c000
92a61eff6SStefan Roese 
102a61eff6SStefan Roese /* Instances */
112a61eff6SStefan Roese #define GPIO_INSTANCES		2
122a61eff6SStefan Roese 
132a61eff6SStefan Roese /*  Relative offsets of the register adresses */
142a61eff6SStefan Roese #define GPIO_SWPORTA_DR_OFFS	0x00000000
152a61eff6SStefan Roese #define GPIO_SWPORTA_DR(base)	((base) + GPIO_SWPORTA_DR_OFFS)
162a61eff6SStefan Roese #define GPIO_SWPORTA_DDR_OFFS	0x00000004
172a61eff6SStefan Roese #define GPIO_SWPORTA_DDR(base)	((base) + GPIO_SWPORTA_DDR_OFFS)
182a61eff6SStefan Roese #define GPIO_EXT_PORTA_OFFS	0x00000050
192a61eff6SStefan Roese #define GPIO_EXT_PORTA(base)	((base) + GPIO_EXT_PORTA_OFFS)
20