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/ti/evm | |
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/ti/evm')
-rw-r--r-- | board/ti/evm/evm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c index e8360df..b17c0fb 100644 --- a/board/ti/evm/evm.c +++ b/board/ti/evm/evm.c @@ -34,7 +34,7 @@ #include <asm/arch/mux.h> #include <asm/arch/sys_proto.h> #include <asm/arch/mmc_host_def.h> -#include <asm/arch/gpio.h> +#include <asm/gpio.h> #include <i2c.h> #include <asm/mach-types.h> #include "evm.h" @@ -196,21 +196,21 @@ static void reset_net_chip(void) rst_gpio = OMAP3EVM_GPIO_ETH_RST_GEN2; } - ret = omap_request_gpio(rst_gpio); + ret = gpio_request(rst_gpio, ""); if (ret < 0) { printf("Unable to get GPIO %d\n", rst_gpio); return ; } /* Configure as output */ - omap_set_gpio_direction(rst_gpio, 0); + gpio_direction_output(rst_gpio, 0); /* Send a pulse on the GPIO pin */ - omap_set_gpio_dataout(rst_gpio, 1); + gpio_set_value(rst_gpio, 1); udelay(1); - omap_set_gpio_dataout(rst_gpio, 0); + gpio_set_value(rst_gpio, 0); udelay(1); - omap_set_gpio_dataout(rst_gpio, 1); + gpio_set_value(rst_gpio, 1); } int board_eth_init(bd_t *bis) |