i2c: lpi2c: add lpi2c driver for i.MX7ULP
[oweals/u-boot.git] / arch / arm / include / asm / arch-mx7ulp / gpio.h
1 /*
2  * Copyright (C) 2016 Freescale Semiconductor, Inc.
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #ifndef __ASM_ARCH_MX7ULP_GPIO_H
8 #define __ASM_ARCH_MX7ULP_GPIO_H
9
10 struct gpio_regs {
11         u32 gpio_pdor;
12         u32 gpio_psor;
13         u32 gpio_pcor;
14         u32 gpio_ptor;
15         u32 gpio_pdir;
16         u32 gpio_pddr;
17         u32 gpio_gacr;
18 };
19
20 #define IMX_GPIO_NR(port, index)                ((((port)-1)*32)+((index)&31))
21
22 #endif /* __ASM_ARCH_MX7ULP_GPIO_H */