mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			468 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			468 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (C) 2011
 | 
						|
 * Stefano Babic, DENX Software Engineering, <sbabic@denx.de>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier:	GPL-2.0+
 | 
						|
 */
 | 
						|
 | 
						|
 | 
						|
#ifndef __ASM_ARCH_IMX_GPIO_H
 | 
						|
#define __ASM_ARCH_IMX_GPIO_H
 | 
						|
 | 
						|
#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
 | 
						|
/* 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
 |