X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=cmd%2Feeprom.c;h=4052cf494a51db3de6c82002e4a04f47d4805e1f;hb=1713dac4399f35b38e6468ae932a2b435b022ecd;hp=e43566bc56db6baaec5c3324319a5d6d4919a083;hpb=a9f47426ced2e5057930990f3cd602b8ab936f69;p=u-boot diff --git a/cmd/eeprom.c b/cmd/eeprom.c index e43566bc56..4052cf494a 100644 --- a/cmd/eeprom.c +++ b/cmd/eeprom.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000, 2001 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ /* @@ -68,7 +67,7 @@ __weak int eeprom_write_enable(unsigned dev_addr, int state) void eeprom_init(int bus) { /* SPI EEPROM */ -#if defined(CONFIG_SPI) && !defined(CONFIG_ENV_EEPROM_IS_ON_I2C) +#if defined(CONFIG_MPC8XX_SPI) && !defined(CONFIG_ENV_EEPROM_IS_ON_I2C) spi_init_f(); #endif @@ -131,7 +130,7 @@ static int eeprom_rw_block(unsigned offset, uchar *addr, unsigned alen, int ret = 0; /* SPI */ -#if defined(CONFIG_SPI) && !defined(CONFIG_ENV_EEPROM_IS_ON_I2C) +#if defined(CONFIG_MPC8XX_SPI) && !defined(CONFIG_ENV_EEPROM_IS_ON_I2C) if (read) spi_read(addr, alen, buffer, len); else @@ -265,10 +264,6 @@ __weak int eeprom_parse_layout_version(char *str) static unsigned char eeprom_buf[CONFIG_SYS_EEPROM_SIZE]; -#ifndef CONFIG_EEPROM_LAYOUT_HELP_STRING -#define CONFIG_EEPROM_LAYOUT_HELP_STRING "" -#endif - #endif enum eeprom_action {