summaryrefslogtreecommitdiff
path: root/board/cm_t35
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/cm_t35
parent3b690ebbbf21303a3bac1f62d967c36cd8655ce0 (diff)
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/cm_t35')
-rw-r--r--board/cm_t35/leds.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/cm_t35/leds.c b/board/cm_t35/leds.c
index 71c5b0de5f7..48ad598d906 100644
--- a/board/cm_t35/leds.c
+++ b/board/cm_t35/leds.c
@@ -20,26 +20,26 @@
*/
#include <common.h>
#include <status_led.h>
-#include <asm/arch/gpio.h>
+#include <asm/gpio.h>
static unsigned int leds[] = { GREEN_LED_GPIO };
void __led_init(led_id_t mask, int state)
{
- if (omap_request_gpio(leds[mask]) != 0) {
+ if (gpio_request(leds[mask], "") != 0) {
printf("%s: failed requesting GPIO%u\n", __func__, leds[mask]);
return;
}
- omap_set_gpio_direction(leds[mask], 0);
+ gpio_direction_output(leds[mask], 0);
}
void __led_set(led_id_t mask, int state)
{
- omap_set_gpio_dataout(leds[mask], state == STATUS_LED_ON);
+ gpio_set_value(leds[mask], state == STATUS_LED_ON);
}
void __led_toggle(led_id_t mask)
{
- omap_set_gpio_dataout(leds[mask], !omap_get_gpio_datain(leds[mask]));
+ gpio_set_value(leds[mask], !gpio_get_value(leds[mask]));
}