Merge tag 'efi-2020-07-rc6' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
[oweals/u-boot.git] / arch / arm / include / asm / arch-mx7ulp / gpio.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2016 Freescale Semiconductor, Inc.
4  */
5
6 #ifndef __ASM_ARCH_MX7ULP_GPIO_H
7 #define __ASM_ARCH_MX7ULP_GPIO_H
8
9 struct gpio_regs {
10         u32 gpio_pdor;
11         u32 gpio_psor;
12         u32 gpio_pcor;
13         u32 gpio_ptor;
14         u32 gpio_pdir;
15         u32 gpio_pddr;
16         u32 gpio_gacr;
17 };
18
19 #define IMX_GPIO_NR(port, index)                ((((port)-1)*32)+((index)&31))
20
21 #endif /* __ASM_ARCH_MX7ULP_GPIO_H */