diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2018-11-22 21:38:38 +0530 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2018-11-27 21:06:53 +0530 |
commit | efbeabee79a28760837fcd5e75ff53d8bb857835 (patch) | |
tree | e01a10e28c777cb5124c68b86292aaabc58994ba /cmd/eeprom.c | |
parent | f34d0315e9fec21baed198500d58d1613cf4d17c (diff) | |
download | u-boot-efbeabee79a28760837fcd5e75ff53d8bb857835.tar.gz |
spi: Remove unused mpc8xx code
- spi_init_f
- spi_init_r
- spi_read
- spi_write
these spi calls are exclusively for mpc8xx, but
the relevant driver is not available so remove it.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'cmd/eeprom.c')
-rw-r--r-- | cmd/eeprom.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/cmd/eeprom.c b/cmd/eeprom.c index 4052cf494a..9136630ada 100644 --- a/cmd/eeprom.c +++ b/cmd/eeprom.c @@ -66,11 +66,6 @@ __weak int eeprom_write_enable(unsigned dev_addr, int state) void eeprom_init(int bus) { - /* SPI EEPROM */ -#if defined(CONFIG_MPC8XX_SPI) && !defined(CONFIG_ENV_EEPROM_IS_ON_I2C) - spi_init_f(); -#endif - /* I2C EEPROM */ #if defined(CONFIG_SYS_I2C) if (bus >= 0) @@ -129,14 +124,6 @@ static int eeprom_rw_block(unsigned offset, uchar *addr, unsigned alen, { int ret = 0; - /* SPI */ -#if defined(CONFIG_MPC8XX_SPI) && !defined(CONFIG_ENV_EEPROM_IS_ON_I2C) - if (read) - spi_read(addr, alen, buffer, len); - else - spi_write(addr, alen, buffer, len); -#else /* I2C */ - #if defined(CONFIG_SYS_I2C_EEPROM_BUS) i2c_set_bus_num(CONFIG_SYS_I2C_EEPROM_BUS); #endif @@ -148,7 +135,7 @@ static int eeprom_rw_block(unsigned offset, uchar *addr, unsigned alen, if (ret) ret = 1; -#endif + return ret; } |