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:
Simon Glass
2024-11-02 18:32:53 -06:00
parent b262e8d40b
commit ffe8f5d31d
4 changed files with 4 additions and 38 deletions

View File

@@ -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 */