X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=qemu%2Froms%2Fu-boot%2Fboard%2Fmicronas%2Fvct%2Fvcth%2Freg_gpio.h;fp=qemu%2Froms%2Fu-boot%2Fboard%2Fmicronas%2Fvct%2Fvcth%2Freg_gpio.h;h=43752c3c976a51d1707f011725bc8788ec9e76de;hb=e44e3482bdb4d0ebde2d8b41830ac2cdb07948fb;hp=0000000000000000000000000000000000000000;hpb=9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00;p=kvmfornfv.git diff --git a/qemu/roms/u-boot/board/micronas/vct/vcth/reg_gpio.h b/qemu/roms/u-boot/board/micronas/vct/vcth/reg_gpio.h new file mode 100644 index 000000000..43752c3c9 --- /dev/null +++ b/qemu/roms/u-boot/board/micronas/vct/vcth/reg_gpio.h @@ -0,0 +1,19 @@ +/* + * (C) Copyright 2008 Stefan Roese , DENX Software Engineering + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#define GPIO1_BASE 0x00088000 +#define GPIO2_BASE 0x0008c000 + +/* Instances */ +#define GPIO_INSTANCES 2 + +/* Relative offsets of the register adresses */ +#define GPIO_SWPORTA_DR_OFFS 0x00000000 +#define GPIO_SWPORTA_DR(base) ((base) + GPIO_SWPORTA_DR_OFFS) +#define GPIO_SWPORTA_DDR_OFFS 0x00000004 +#define GPIO_SWPORTA_DDR(base) ((base) + GPIO_SWPORTA_DDR_OFFS) +#define GPIO_EXT_PORTA_OFFS 0x00000050 +#define GPIO_EXT_PORTA(base) ((base) + GPIO_EXT_PORTA_OFFS)