]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arm/include/asm/mach-imx/gpio.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / arch / arm / include / asm / mach-imx / gpio.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
5fecb36c
SB
2/*
3 * Copyright (C) 2011
4 * Stefano Babic, DENX Software Engineering, <sbabic@denx.de>
5fecb36c
SB
5 */
6
7
8#ifndef __ASM_ARCH_IMX_GPIO_H
9#define __ASM_ARCH_IMX_GPIO_H
10
11#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
12/* GPIO registers */
13struct gpio_regs {
14 u32 gpio_dr; /* data */
15 u32 gpio_dir; /* direction */
16 u32 gpio_psr; /* pad satus */
17};
18#endif
19
20#define IMX_GPIO_NR(port, index) ((((port)-1)*32)+((index)&31))
21
22#endif