eb_cpu5282: Drop status-LED code and enable LED
Drop this old code. Swtich the LED options to use the new approach, in the same commit, to maintain build-bisectability. Both eb_cpu5282 and eb_cpu5282_internal are done together, since they share code. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
#include <bmp_layout.h>
|
||||
#include <env.h>
|
||||
#include <init.h>
|
||||
#include <status_led.h>
|
||||
#include <bus_vcxk.h>
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
@@ -160,25 +159,6 @@ int misc_init_r(void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
void __led_toggle(led_id_t mask)
|
||||
{
|
||||
MCFGPTA_GPTPORT ^= (1 << 3);
|
||||
}
|
||||
|
||||
void __led_init(led_id_t mask, int state)
|
||||
{
|
||||
__led_set(mask, state);
|
||||
MCFGPTA_GPTDDR |= (1 << 3);
|
||||
}
|
||||
|
||||
void __led_set(led_id_t mask, int state)
|
||||
{
|
||||
if (state == CONFIG_LED_STATUS_ON)
|
||||
MCFGPTA_GPTPORT |= (1 << 3);
|
||||
else
|
||||
MCFGPTA_GPTPORT &= ~(1 << 3);
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
/* EOF EB+MCF-EV123.c */
|
||||
|
||||
Reference in New Issue
Block a user