summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-mx31/mx31.h
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2010-07-06 17:05:06 +0200
committerStefano Babic <sbabic@denx.de>2010-09-29 11:24:30 +0200
commitc4ea142424fc5cb43a2db750cb772e84304e5fb8 (patch)
treebc6abb5343579120ee5680c46cd927d82064b1e5 /arch/arm/include/asm/arch-mx31/mx31.h
parent2e6e1772c0e34871769be4aef79748fe3e47d953 (diff)
downloadblackbird-obmc-uboot-c4ea142424fc5cb43a2db750cb772e84304e5fb8.tar.gz
blackbird-obmc-uboot-c4ea142424fc5cb43a2db750cb772e84304e5fb8.zip
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-mx31/mx31.h')
-rw-r--r--arch/arm/include/asm/arch-mx31/mx31.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/arch/arm/include/asm/arch-mx31/mx31.h b/arch/arm/include/asm/arch-mx31/mx31.h
index f702d260f1..5a5aa114a7 100644
--- a/arch/arm/include/asm/arch-mx31/mx31.h
+++ b/arch/arm/include/asm/arch-mx31/mx31.h
@@ -28,31 +28,6 @@ extern u32 mx31_get_ipg_clk(void);
#define imx_get_uartclk mx31_get_ipg_clk
extern void mx31_gpio_mux(unsigned long mode);
-enum mx31_gpio_direction {
- MX31_GPIO_DIRECTION_IN,
- MX31_GPIO_DIRECTION_OUT,
-};
-
-#ifdef CONFIG_MX31_GPIO
-extern int mx31_gpio_direction(unsigned int gpio,
- enum mx31_gpio_direction direction);
-extern void mx31_gpio_set(unsigned int gpio, unsigned int value);
-extern int mx31_gpio_get(unsigned int gpio);
-#else
-static inline int mx31_gpio_direction(unsigned int gpio,
- enum mx31_gpio_direction direction)
-{
- return 1;
-}
-static inline int mx31_gpio_get(unsigned int gpio)
-{
- return 1;
-}
-static inline void mx31_gpio_set(unsigned int gpio, unsigned int value)
-{
-}
-#endif
-
void mx31_uart1_hw_init(void);
void mx31_spi2_hw_init(void);
OpenPOWER on IntegriCloud