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 */
|
||||
|
||||
@@ -35,12 +35,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
|
||||
CONFIG_SYS_RX_ETH_BUFFER=8
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_FSL=y
|
||||
CONFIG_LED_STATUS=y
|
||||
CONFIG_LED_STATUS0=y
|
||||
CONFIG_LED_STATUS_BIT=8
|
||||
CONFIG_LED_STATUS_BOOT_ENABLE=y
|
||||
CONFIG_LED_STATUS_BOOT=0
|
||||
CONFIG_LED_STATUS_CMD=y
|
||||
CONFIG_LED=y
|
||||
CONFIG_LED_BOOT=y
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_NOR_FLASH=y
|
||||
CONFIG_FLASH_CFI_DRIVER=y
|
||||
|
||||
@@ -33,12 +33,8 @@ CONFIG_SYS_FAULT_ECHO_LINK_DOWN=y
|
||||
CONFIG_SYS_RX_ETH_BUFFER=8
|
||||
CONFIG_DM_I2C=y
|
||||
CONFIG_SYS_I2C_FSL=y
|
||||
CONFIG_LED_STATUS=y
|
||||
CONFIG_LED_STATUS0=y
|
||||
CONFIG_LED_STATUS_BIT=8
|
||||
CONFIG_LED_STATUS_BOOT_ENABLE=y
|
||||
CONFIG_LED_STATUS_BOOT=0
|
||||
CONFIG_LED_STATUS_CMD=y
|
||||
CONFIG_LED=y
|
||||
CONFIG_LED_BOOT=y
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_NOR_FLASH=y
|
||||
CONFIG_FLASH_CFI_DRIVER=y
|
||||
|
||||
@@ -14,12 +14,6 @@
|
||||
|
||||
#define CFG_SYS_UART_PORT (0)
|
||||
|
||||
/*----------------------------------------------------------------------*
|
||||
* Options *
|
||||
*----------------------------------------------------------------------*/
|
||||
|
||||
#define STATUS_LED_ACTIVE 0
|
||||
|
||||
/*----------------------------------------------------------------------*
|
||||
* Configuration for environment *
|
||||
* Environment is in the second sector of the first 256k of flash *
|
||||
|
||||
Reference in New Issue
Block a user