[PATCH 4/9] ARM STM/i.MX: Setting the iomux needs at least 32 bit.

Juergen Beisert jbe at pengutronix.de
Tue Dec 21 06:25:16 EST 2010


Signed-off-by: Juergen Beisert <jbe at pengutronix.de>
---
 arch/arm/mach-stm/include/mach/gpio.h |    4 +++-
 arch/arm/mach-stm/iomux-imx.c         |    2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-stm/include/mach/gpio.h b/arch/arm/mach-stm/include/mach/gpio.h
index 5615b67..97566a2 100644
--- a/arch/arm/mach-stm/include/mach/gpio.h
+++ b/arch/arm/mach-stm/include/mach/gpio.h
@@ -20,6 +20,8 @@
 #ifndef __ASM_MACH_GPIO_H
 #define __ASM_MACH_GPIO_H
 
+#include <types.h>
+
 #if defined CONFIG_ARCH_IMX23
 # include <mach/iomux-imx23.h>
 #endif
@@ -27,6 +29,6 @@
 # include <mach/iomux-imx28.h>
 #endif
 
-void imx_gpio_mode(unsigned);
+void imx_gpio_mode(uint32_t);
 
 #endif /* __ASM_MACH_GPIO_H */
diff --git a/arch/arm/mach-stm/iomux-imx.c b/arch/arm/mach-stm/iomux-imx.c
index 2ebe058..85e9684 100644
--- a/arch/arm/mach-stm/iomux-imx.c
+++ b/arch/arm/mach-stm/iomux-imx.c
@@ -79,7 +79,7 @@ static unsigned calc_output_reg(unsigned no)
 /**
  * @param[in] m One of the defines from iomux-mx23.h to configure *one* pin
  */
-void imx_gpio_mode(unsigned m)
+void imx_gpio_mode(uint32_t m)
 {
 	uint32_t reg;
 	unsigned gpio_pin, reg_offset;
-- 
1.7.2.3




More information about the barebox mailing list