diff options
author | Sanjeev Premi <premi@ti.com> | 2011-09-08 10:51:01 -0400 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-09-13 08:25:15 +0200 |
commit | 84c3b6312997de6f98114263159c8b9824f3d33d (patch) | |
tree | 943f816f64d66cd956b5ece9b6198b78b7c2c5e9 /board/comelit | |
parent | 3b690ebbbf21303a3bac1f62d967c36cd8655ce0 (diff) | |
download | u-boot-imx-84c3b6312997de6f98114263159c8b9824f3d33d.zip u-boot-imx-84c3b6312997de6f98114263159c8b9824f3d33d.tar.gz u-boot-imx-84c3b6312997de6f98114263159c8b9824f3d33d.tar.bz2 |
omap: gpio: Adapt board files to use generic API
This patch contains updates the sources in the board files
to use the generic API.
Signed-off-by: Sanjeev Premi <premi@ti.com>
Diffstat (limited to 'board/comelit')
-rw-r--r-- | board/comelit/dig297/dig297.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/board/comelit/dig297/dig297.c b/board/comelit/dig297/dig297.c index a7071cd..c81ce58 100644 --- a/board/comelit/dig297/dig297.c +++ b/board/comelit/dig297/dig297.c @@ -42,7 +42,7 @@ #include <asm/arch/mux.h> #include <asm/arch/mem.h> #include <asm/arch/sys_proto.h> -#include <asm/arch/gpio.h> +#include <asm/gpio.h> #include <asm/mach-types.h> #include "dig297.h" @@ -177,13 +177,13 @@ static void setup_net_chip(void) &ctrl_base->gpmc_nadv_ale); /* Make GPIO 12 as output pin and send a magic pulse through it */ - if (!omap_request_gpio(NET_LAN9221_RESET_GPIO)) { - omap_set_gpio_direction(NET_LAN9221_RESET_GPIO, 0); - omap_set_gpio_dataout(NET_LAN9221_RESET_GPIO, 1); + if (!gpio_request(NET_LAN9221_RESET_GPIO, "")) { + gpio_direction_output(NET_LAN9221_RESET_GPIO, 0); + gpio_set_value(NET_LAN9221_RESET_GPIO, 1); udelay(1); - omap_set_gpio_dataout(NET_LAN9221_RESET_GPIO, 0); + gpio_set_value(NET_LAN9221_RESET_GPIO, 0); udelay(31000); /* Should be >= 30ms according to datasheet */ - omap_set_gpio_dataout(NET_LAN9221_RESET_GPIO, 1); + gpio_set_value(NET_LAN9221_RESET_GPIO, 1); } } #endif /* CONFIG_CMD_NET */ |