diff options
author | Stefano Babic <sbabic@denx.de> | 2010-07-06 17:05:06 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2010-09-29 11:24:30 +0200 |
commit | c4ea142424fc5cb43a2db750cb772e84304e5fb8 (patch) | |
tree | bc6abb5343579120ee5680c46cd927d82064b1e5 /arch/arm/include/asm/arch-mx51 | |
parent | 2e6e1772c0e34871769be4aef79748fe3e47d953 (diff) | |
download | u-boot-imx-c4ea142424fc5cb43a2db750cb772e84304e5fb8.zip u-boot-imx-c4ea142424fc5cb43a2db750cb772e84304e5fb8.tar.gz u-boot-imx-c4ea142424fc5cb43a2db750cb772e84304e5fb8.tar.bz2 |
Use common function to set GPIOs for MX3 and MX5
The patch adds support for setting gpios to the
MX51 processor and change name to the corresponding
functions for MX31. In this way, it is possible to get rid
of nasty #ifdef switches related to the processor type.
Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/include/asm/arch-mx51')
-rw-r--r-- | arch/arm/include/asm/arch-mx51/imx-regs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx51/imx-regs.h b/arch/arm/include/asm/arch-mx51/imx-regs.h index 3887d3c..0e3bc2a 100644 --- a/arch/arm/include/asm/arch-mx51/imx-regs.h +++ b/arch/arm/include/asm/arch-mx51/imx-regs.h @@ -256,6 +256,12 @@ struct weim { u32 cswcr2; }; +/* GPIO Registers */ +struct gpio_regs { + u32 gpio_dr; + u32 gpio_dir; + u32 gpio_psr; +}; #endif /* __ASSEMBLER__*/ #endif /* __ASM_ARCH_MXC_MX51_H__ */ |