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 committed by Holger Hans Peter Freyther
parent 8cb5cebedc
commit e0b20eca6f
4 changed files with 20 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, CONFIG_LED_STATUS_OFF);
return(0);
}

View File

@ -2,5 +2,13 @@ CONFIG_ARM=y
CONFIG_ARCH_DAVINCI=y
CONFIG_TARGET_DAVINCI_SYSMOBTS_V2=y
CONFIG_CMD_NET=y
CONFIG_BOOTDELAY=8
CONFIG_SYS_PROMPT="sysmoBTSv2 > "
CONFIG_CMD_UBI=y
CONFIG_LED_STATUS=y
CONFIG_LED_STATUS_GPIO=y
CONFIG_LED_STATUS0=y
CONFIG_LED_STATUS_BIT=29
CONFIG_LED_STATUS_FREQ=4
CONFIG_LED_STATUS_YELLOW_ENABLE=y
CONFIG_LED_STATUS_YELLOW=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:
@ -182,6 +183,13 @@
#define CONFIG_CMD_MTDPARTS
#define CONFIG_LZO
/*=======================*/
/* GPIO handling */
/*=======================*/
#define CONFIG_DM644X_GPIO
#define CONFIG_CMD_GPIO
/* bdinfo should show the clocks */
#ifdef CONFIG_CMD_BDI
#define CONFIG_CLOCKS

View File

@ -755,6 +755,7 @@ CONFIG_DISPLAY_AER_xxxx
CONFIG_DISPLAY_BOARDINFO_LATE
CONFIG_DLVISION
CONFIG_DLVISION_10G
CONFIG_DM644X_GPIO
CONFIG_DM9000_BASE
CONFIG_DM9000_BYTE_SWAPPED
CONFIG_DM9000_DEBUG