summaryrefslogtreecommitdiff
path: root/board/logicpd/zoom2/debug_board.c
diff options
context:
space:
mode:
authorSanjeev Premi <premi@ti.com>2011-09-08 10:51:01 -0400
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-13 08:25:15 +0200
commit84c3b6312997de6f98114263159c8b9824f3d33d (patch)
tree943f816f64d66cd956b5ece9b6198b78b7c2c5e9 /board/logicpd/zoom2/debug_board.c
parent3b690ebbbf21303a3bac1f62d967c36cd8655ce0 (diff)
downloadu-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/logicpd/zoom2/debug_board.c')
-rw-r--r--board/logicpd/zoom2/debug_board.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/logicpd/zoom2/debug_board.c b/board/logicpd/zoom2/debug_board.c
index a4ddf29..33aa600 100644
--- a/board/logicpd/zoom2/debug_board.c
+++ b/board/logicpd/zoom2/debug_board.c
@@ -22,7 +22,7 @@
#include <asm/arch/cpu.h>
#include <asm/io.h>
#include <asm/arch/mux.h>
-#include <asm/arch/gpio.h>
+#include <asm/gpio.h>
#define DEBUG_BOARD_CONNECTED 1
#define DEBUG_BOARD_NOT_CONNECTED 0
@@ -33,14 +33,14 @@ static void zoom2_debug_board_detect (void)
{
int val = 0;
- if (!omap_request_gpio(158)) {
+ if (!gpio_request(158, "")) {
/*
* GPIO to query for debug board
* 158 db board query
*/
- omap_set_gpio_direction(158, 1);
- val = omap_get_gpio_datain(158);
- omap_free_gpio(158);
+ gpio_direction_input(158);
+ val = gpio_get_value(158);
+ gpio_free(158);
}
if (!val)