mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-12 10:17:02 +02:00
As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
25 lines
494 B
C
25 lines
494 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2011
|
|
* Stefano Babic, DENX Software Engineering, <sbabic@denx.de>
|
|
*/
|
|
|
|
|
|
#ifndef __ASM_ARCH_IMX_GPIO_H
|
|
#define __ASM_ARCH_IMX_GPIO_H
|
|
|
|
#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
|
|
#include <linux/types.h>
|
|
|
|
/* GPIO registers */
|
|
struct gpio_regs {
|
|
u32 gpio_dr; /* data */
|
|
u32 gpio_dir; /* direction */
|
|
u32 gpio_psr; /* pad satus */
|
|
};
|
|
#endif
|
|
|
|
#define IMX_GPIO_NR(port, index) ((((port)-1)*32)+((index)&31))
|
|
|
|
#endif
|