blob: 7c625609bacfac4182b511cb347db41d14161f0f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Peng Fanc5f49862017-02-22 16:21:45 +08002/*
3 * Copyright (C) 2016 Freescale Semiconductor, Inc.
Peng Fanc5f49862017-02-22 16:21:45 +08004 */
5
6#ifndef __ASM_ARCH_MX7ULP_GPIO_H
7#define __ASM_ARCH_MX7ULP_GPIO_H
8
9struct 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 */