mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
imx: ventana: Rework CONFIG_CMD_EECONFIG code to not be included in SPL
The command can only be used from full U-Boot, so do not build it into SPL. Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Tim Harvey <tharvey@gateworks.com> Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
This commit is contained in:
@ -119,7 +119,7 @@ struct ventana_eeprom_config econfig[] = {
|
|||||||
{ /* Sentinel */ }
|
{ /* Sentinel */ }
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_CMD_EECONFIG
|
#if defined(CONFIG_CMD_EECONFIG) && !defined(CONFIG_SPL_BUILD)
|
||||||
static struct ventana_eeprom_config *get_config(const char *name)
|
static struct ventana_eeprom_config *get_config(const char *name)
|
||||||
{
|
{
|
||||||
struct ventana_eeprom_config *cfg = econfig;
|
struct ventana_eeprom_config *cfg = econfig;
|
||||||
@ -135,7 +135,7 @@ static struct ventana_eeprom_config *get_config(const char *name)
|
|||||||
static u8 econfig_bytes[sizeof(ventana_info.config)];
|
static u8 econfig_bytes[sizeof(ventana_info.config)];
|
||||||
static int econfig_init = -1;
|
static int econfig_init = -1;
|
||||||
|
|
||||||
int do_econfig(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
static int do_econfig(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||||
{
|
{
|
||||||
struct ventana_eeprom_config *cfg;
|
struct ventana_eeprom_config *cfg;
|
||||||
struct ventana_board_info *info = &ventana_info;
|
struct ventana_board_info *info = &ventana_info;
|
||||||
|
Reference in New Issue
Block a user