Skip to content
Snippets Groups Projects
Commit 53a85ad7 authored by Marek Vasut's avatar Marek Vasut Committed by Tom Rini
Browse files

eeprom: Zap CONFIG_SPI_X


This macro is no longer used, so just reap it.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Heiko Schocher <hs@denx.de>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
parent b7b2e3f7
No related branches found
No related tags found
No related merge requests found
...@@ -2692,11 +2692,6 @@ CBFS (Coreboot Filesystem) support ...@@ -2692,11 +2692,6 @@ CBFS (Coreboot Filesystem) support
Enables the driver for SPI controller on SuperH. Currently Enables the driver for SPI controller on SuperH. Currently
only SH7757 is supported. only SH7757 is supported.
CONFIG_SPI_X
Enables extended (16-bit) SPI EEPROM addressing.
(symmetrical to CONFIG_I2C_X)
CONFIG_SOFT_SPI CONFIG_SOFT_SPI
Enables a software (bit-bang) SPI driver rather than Enables a software (bit-bang) SPI driver rather than
......
...@@ -78,7 +78,7 @@ int eeprom_read (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt ...@@ -78,7 +78,7 @@ int eeprom_read (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt
unsigned maxlen; unsigned maxlen;
#endif #endif
#if CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X) #if CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1
uchar addr[2]; uchar addr[2];
blk_off = offset & 0xFF; /* block offset */ blk_off = offset & 0xFF; /* block offset */
...@@ -95,7 +95,7 @@ int eeprom_read (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt ...@@ -95,7 +95,7 @@ int eeprom_read (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cnt
addr[1] = offset >> 8; /* upper address octet */ addr[1] = offset >> 8; /* upper address octet */
addr[2] = blk_off; /* lower address octet */ addr[2] = blk_off; /* lower address octet */
alen = 3; alen = 3;
#endif /* CONFIG_SYS_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */ #endif /* CONFIG_SYS_I2C_EEPROM_ADDR_LEN */
addr[0] |= dev_addr; /* insert device address */ addr[0] |= dev_addr; /* insert device address */
...@@ -151,7 +151,7 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn ...@@ -151,7 +151,7 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
unsigned maxlen; unsigned maxlen;
#endif #endif
#if CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 && !defined(CONFIG_SPI_X) #if CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1
uchar addr[2]; uchar addr[2];
blk_off = offset & 0xFF; /* block offset */ blk_off = offset & 0xFF; /* block offset */
...@@ -168,7 +168,7 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn ...@@ -168,7 +168,7 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn
addr[1] = offset >> 8; /* upper address octet */ addr[1] = offset >> 8; /* upper address octet */
addr[2] = blk_off; /* lower address octet */ addr[2] = blk_off; /* lower address octet */
alen = 3; alen = 3;
#endif /* CONFIG_SYS_I2C_EEPROM_ADDR_LEN, CONFIG_SPI_X */ #endif /* CONFIG_SYS_I2C_EEPROM_ADDR_LEN */
addr[0] |= dev_addr; /* insert device address */ addr[0] |= dev_addr; /* insert device address */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment