]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
eeprom: Drop CONFIG_ENV_EEPROM_IS_ON_I2C usage
authorTom Rini <trini@konsulko.com>
Tue, 17 Aug 2021 21:59:44 +0000 (17:59 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 30 Aug 2021 18:10:06 +0000 (14:10 -0400)
At this point in time, there's no systems with "U-Boot environment
exists on an EEPROM which is accessed over the I2C bus" that sets this
option.  Drop it.

Signed-off-by: Tom Rini <trini@konsulko.com>
13 files changed:
cmd/eeprom.c
env/Kconfig
include/configs/am335x_evm.h
include/configs/am335x_sl50.h
include/configs/am43xx_evm.h
include/configs/am57xx_evm.h
include/configs/baltos.h
include/configs/cm_fx6.h
include/configs/cm_t335.h
include/configs/cm_t43.h
include/configs/dra7xx_evm.h
include/configs/km/km_arm.h
include/configs/ti_armv7_keystone2.h

index efd6f3ac0325888df060356d972c57553d8f2c09..447bc157fb745b2924fb5c0d02f4489150dc089e 100644 (file)
  * for CONFIG_SYS_I2C_EEPROM_ADDR_LEN == 1 (8-bit EEPROM page address) offset is
  *   0x00000nxx for EEPROM address selectors and page number at n.
  */
-#if !defined(CONFIG_SPI) || defined(CONFIG_ENV_EEPROM_IS_ON_I2C)
-#if !defined(CONFIG_SYS_I2C_EEPROM_ADDR_LEN) || \
-       (CONFIG_SYS_I2C_EEPROM_ADDR_LEN < 1) || \
-       (CONFIG_SYS_I2C_EEPROM_ADDR_LEN > 2)
+#if !defined(CONFIG_SPI) && \
+       (!defined(CONFIG_SYS_I2C_EEPROM_ADDR_LEN) || \
+               (CONFIG_SYS_I2C_EEPROM_ADDR_LEN < 1) || \
+               (CONFIG_SYS_I2C_EEPROM_ADDR_LEN > 2))
 #error CONFIG_SYS_I2C_EEPROM_ADDR_LEN must be 1 or 2
 #endif
-#endif
 
 #if CONFIG_IS_ENABLED(DM_I2C)
 static int eeprom_i2c_bus;
index c0dff1fd819546d3ac8a51ad57553d583053a142..760e62521c981c03f4d5c16254a0020f7ef53488 100644 (file)
@@ -44,10 +44,6 @@ config ENV_IS_IN_EEPROM
          still be one byte because the extra address bits are hidden
          in the chip address.
 
-         - CONFIG_ENV_EEPROM_IS_ON_I2C
-         define this, if you have I2C and SPI activated, and your
-         EEPROM, which holds the environment, is on the I2C bus.
-
          - CONFIG_I2C_ENV_EEPROM_BUS
          if you have an Environment on an EEPROM reached over
          I2C muxes, you can define here, how to reach this
index ad5616d28fbd2f31349f0bfe1b8999170b83baf7..c7277cb48a9a5425ba7972f760392bef659458f0 100644 (file)
 #define CONFIG_SYS_NS16550_COM5                0x481a8000      /* UART4 */
 #define CONFIG_SYS_NS16550_COM6                0x481aa000      /* UART5 */
 
-#define CONFIG_ENV_EEPROM_IS_ON_I2C
 #define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* Main EEPROM */
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 
index 16849d8701149468858c4354258a557eb059e5df..449621f99a8a80ebdcb3beffbe68206f6951417a 100644 (file)
@@ -55,7 +55,6 @@
 #define CONFIG_SYS_NS16550_COM5                0x481a8000      /* UART4 */
 #define CONFIG_SYS_NS16550_COM6                0x481aa000      /* UART5 */
 
-#define CONFIG_ENV_EEPROM_IS_ON_I2C
 #define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* Main EEPROM */
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 
index 31a1c7e392f275c1857c4df0fdb6868cd5fce9a1..c0681316cffa8b71fb554012cfd66791805b6882 100644 (file)
@@ -21,7 +21,6 @@
 #endif
 
 /* I2C Configuration */
-#define CONFIG_ENV_EEPROM_IS_ON_I2C
 #define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* Main EEPROM */
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 
index c47ffccff1597cbebaad8494cd29ad2bf458336b..88ade6a5a49f1fbd1ec749641df2f96b820f5e08 100644 (file)
@@ -22,7 +22,6 @@
 #define CONFIG_SYS_NS16550_COM2                UART2_BASE      /* UART2 */
 #define CONFIG_SYS_NS16550_COM3                UART3_BASE      /* UART3 */
 
-#define CONFIG_ENV_EEPROM_IS_ON_I2C
 #define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* Main EEPROM */
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 
index 42a5abd1b41b829ab7c61bae5eeb770ee85219cb..448b454126fe97edef0e7aba8348d61cc5502658 100644 (file)
 #define CONFIG_SYS_NS16550_COM5                0x481a8000      /* UART4 */
 #define CONFIG_SYS_NS16550_COM6                0x481aa000      /* UART5 */
 
-#define CONFIG_ENV_EEPROM_IS_ON_I2C
 #define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* Main EEPROM */
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 
index a496a80e02e5567acdfde6dff147fe044258cad1..d1686d58ab6111b6661d6bd526279629954202f2 100644 (file)
 #define CONFIG_VIDEO_BMP_LOGO
 
 /* EEPROM */
-#define CONFIG_ENV_EEPROM_IS_ON_I2C
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  5
index 342cc7fddc7810da9d3176255d374911854d88e3..10a6c0a109863bf583da47ba7bf1c5282cb5b766 100644 (file)
 /* Status LED polarity is inversed, so init it in the "off" state */
 
 /* EEPROM */
-#define CONFIG_ENV_EEPROM_IS_ON_I2C
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  5
index 73205d0de6a5868532d4011bb29cb42284d8671f..681c73d77d40fdc8d569825ad46e31a6162e7e42 100644 (file)
 #define CONFIG_SYS_MONITOR_LEN         (512 * 1024)
 
 /* EEPROM */
-#define CONFIG_ENV_EEPROM_IS_ON_I2C
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN         1
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      4
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  5
index cc18bcece4d9e17dd865ce8c8cff1fe4990bbe38..ced7e47ad3a3ebc561d7a606815d494081f7d7cd 100644 (file)
@@ -31,7 +31,6 @@
 #define CONFIG_SYS_NS16550_COM2                UART2_BASE      /* UART2 */
 #define CONFIG_SYS_NS16550_COM3                UART3_BASE      /* UART3 */
 
-#define CONFIG_ENV_EEPROM_IS_ON_I2C
 #define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* Main EEPROM */
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 
index 179e145b5ffc8b11dc7cbdc39b89bb50f0f08bdd..5f06a8d2137e58cb645122989cf36476ff4147e0 100644 (file)
@@ -143,7 +143,6 @@ extern void __set_direction(unsigned pin, int high);
 #define CONFIG_ENV_TOTAL_SIZE          0x20000     /* no bracets! */
 #else
 #define CONFIG_SYS_DEF_EEPROM_ADDR     0x50
-#define CONFIG_ENV_EEPROM_IS_ON_I2C
 #define CONFIG_SYS_EEPROM_WREN
 #define CONFIG_I2C_ENV_EEPROM_BUS 5 /* I2C2 (Mux-Port 5) */
 #endif
index fc2b3431ddba547558d13f7353333687b795719e..8d84ebdd817f4be570e06a166f6d750faf0e729d 100644 (file)
 #define CONFIG_SYS_I2C_EEPROM_ADDR             0x50
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      6
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
-#define CONFIG_ENV_EEPROM_IS_ON_I2C
 
 /* NAND Configuration */
 #define CONFIG_KEYSTONE_RBL_NAND