blob: fe411019914b3438d1a83297d2140f6238300cc5 [file] [log] [blame]
Peng Fanc5f49862017-02-22 16:21:45 +08001/*
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
10struct 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 */