]> git.sur5r.net Git - u-boot/commitdiff
MX35: mx35pdk: make use of GPIO framework
authorStefano Babic <sbabic@denx.de>
Sun, 21 Aug 2011 09:00:32 +0000 (11:00 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 4 Sep 2011 09:36:12 +0000 (11:36 +0200)
Signed-off-by: Stefano Babic <sbabic@denx.de>
board/freescale/mx35pdk/mx35pdk.c
include/configs/mx35pdk.h

index a6b5a51f45d38e279ac4db6c91400da149c63cb3..9eefe5ee16882749e5308b38203cf126932c4902 100644 (file)
@@ -34,7 +34,7 @@
 #include <mc9sdz60.h>
 #include <mc13892.h>
 #include <linux/types.h>
-#include <mxc_gpio.h>
+#include <asm/gpio.h>
 #include <asm/arch/sys_proto.h>
 #include <netdev.h>
 
@@ -240,8 +240,7 @@ int board_late_init(void)
                mxc_request_iomux(MX35_PIN_COMPARE, MUX_CONFIG_GPIO);
                mxc_iomux_set_input(MUX_IN_GPIO1_IN_5, INPUT_CTL_PATH0);
 
-               mxc_gpio_direction(37, MXC_GPIO_DIRECTION_OUT);
-               mxc_gpio_set(37, 1);
+               gpio_direction_output(37, 1);
        }
 
        val = mc9sdz60_reg_read(MC9SDZ60_REG_GPIO_1) | 0x04;
index 0d4b7334be66f0bb9399616698b54965ebff1a81..4e9022d814e55aa0c6a91d5b3b104c091e5d232d 100644 (file)
@@ -63,6 +63,7 @@
 #define CONFIG_SYS_I2C_SPEED           100000
 #define CONFIG_SYS_I2C_SLAVE           0xfe
 #define CONFIG_MXC_SPI
+#define CONFIG_MXC_GPIO
 
 
 /*