]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/include/asm/imx-common/gpio.h
3 * Stefano Babic, DENX Software Engineering, <sbabic@denx.de>
5 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef __ASM_ARCH_IMX_GPIO_H
10 #define __ASM_ARCH_IMX_GPIO_H
12 #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
15 u32 gpio_dr
; /* data */
16 u32 gpio_dir
; /* direction */
17 u32 gpio_psr
; /* pad satus */
21 #define IMX_GPIO_NR(port, index) ((((port)-1)*32)+((index)&31))