Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Peng Fan | c5f4986 | 2017-02-22 16:21:45 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 Freescale Semiconductor, Inc. |
Peng Fan | c5f4986 | 2017-02-22 16:21:45 +0800 | [diff] [blame] | 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 */ |