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:
parent
26af5ee6e6
commit
487b90c40c
|
@ -150,6 +150,9 @@ int board_init(void)
|
||||||
lpsc_on(DAVINCI_LPSC_TIMER1);
|
lpsc_on(DAVINCI_LPSC_TIMER1);
|
||||||
timer_init();
|
timer_init();
|
||||||
|
|
||||||
|
/* configure LEDs */
|
||||||
|
status_led_set(0, STATUS_LED_OFF);
|
||||||
|
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/*
|
/*
|
||||||
|
* Copyright (C) 2012 Holger Hans Peter Freyther
|
||||||
* Copyright (C) 2009 Lyrtech RD Inc. <www.lyrtech.com>
|
* Copyright (C) 2009 Lyrtech RD Inc. <www.lyrtech.com>
|
||||||
*
|
*
|
||||||
* Based on dvevm/dvevm.c, original copyright follows:
|
* Based on dvevm/dvevm.c, original copyright follows:
|
||||||
|
@ -190,6 +191,20 @@
|
||||||
#define CONFIG_CMD_MTDPARTS
|
#define CONFIG_CMD_MTDPARTS
|
||||||
#define CONFIG_LZO
|
#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 */
|
/* bdinfo should show the clocks */
|
||||||
#ifdef CONFIG_CMD_BDI
|
#ifdef CONFIG_CMD_BDI
|
||||||
#define CONFIG_CLOCKS
|
#define CONFIG_CLOCKS
|
||||||
|
|
Loading…
Reference in New Issue