sysmobts-v2: Enable the LED code with the GPIO LED driver.

LED0 is the "RF Active"/Yellow LED on the sysmobts-v2. We are not
using the 'yellow' LED alias as one needs to provide two functions
that call __led_set on led_yellow_on and led_yellow_off. Initialize
the GPIO direction in the board routine as the status_led code will
not be used.
This commit is contained in:
Holger Hans Peter Freyther 2012-07-13 14:11:44 +02:00
parent 57eb22a6cf
commit de9e6f3528
2 changed files with 18 additions and 0 deletions

View File

@ -150,6 +150,9 @@ int board_init(void)
lpsc_on(DAVINCI_LPSC_TIMER1);
timer_init();
/* configure LEDs */
status_led_set(0, STATUS_LED_OFF);
return(0);
}

View File

@ -1,4 +1,5 @@
/*
* Copyright (C) 2012 Holger Hans Peter Freyther
* Copyright (C) 2009 Lyrtech RD Inc. <www.lyrtech.com>
*
* Based on dvevm/dvevm.c, original copyright follows:
@ -190,6 +191,20 @@
#define CONFIG_CMD_MTDPARTS
#define CONFIG_LZO
/*=======================*/
/* LED handling */
/*=======================*/
#define CONFIG_STATUS_LED
#define CONFIG_GPIO_LED
#define CONFIG_BOARD_SPECIFIC_LED
#define STATUS_LED_BIT 29
#define STATUS_LED_STATE STATUS_LED_OFF
#define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 4) /* not really wanted */
#define CONFIG_CMD_LED
#define CONFIG_DM644X_GPIO
#define CONFIG_CMD_GPIO
/* bdinfo should show the clocks */
#ifdef CONFIG_CMD_BDI
#define CONFIG_CLOCKS