From 84c3b6312997de6f98114263159c8b9824f3d33d Mon Sep 17 00:00:00 2001 From: Sanjeev Premi Date: Thu, 8 Sep 2011 10:51:01 -0400 Subject: 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 --- board/comelit/dig297/dig297.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'board/comelit/dig297/dig297.c') 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 #include #include -#include +#include #include #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 */ -- cgit v1.1