]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i2c: Drop CFG_SYS_MAX_I2C_BUS
authorSimon Glass <sjg@chromium.org>
Sun, 11 Aug 2024 14:50:44 +0000 (08:50 -0600)
committerHeiko Schocher <hs@denx.de>
Tue, 13 Aug 2024 04:16:08 +0000 (06:16 +0200)
Only one board uses this option and it is very old. Let's drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
include/configs/ethernut5.h
include/i2c.h

index 807c6963192f10aefb3ba4fe5a16bcbf6b6dc38d..c327bbbe07d0ce1a47c020f2f8cfca1ce48889f7 100644 (file)
@@ -59,9 +59,6 @@
 #define CFG_SYS_I2C_RTC_ADDR           0x51
 #endif
 
-/* I2C */
-#define CFG_SYS_MAX_I2C_BUS    1
-
 #define I2C_SOFT_DECLARATIONS
 
 #define GPIO_I2C_SCL           AT91_PIO_PORTA, 24
index b6727bb2a739e5141165a3adeadb0f7c8d1ffc81..282f3cd700fcdd98369c55fdab89024512aaf295 100644 (file)
@@ -933,20 +933,6 @@ int i2c_set_bus_speed(unsigned int);
 unsigned int i2c_get_bus_speed(void);
 #endif /* CONFIG_SYS_I2C_LEGACY */
 
-/*
- * only for backwardcompatibility, should go away if we switched
- * completely to new multibus support.
- */
-#if CONFIG_IS_ENABLED(SYS_I2C_LEGACY)
-# if !defined(CFG_SYS_MAX_I2C_BUS)
-#  define CFG_SYS_MAX_I2C_BUS          2
-# endif
-# define I2C_MULTI_BUS                         1
-#else
-# define CFG_SYS_MAX_I2C_BUS           1
-# define I2C_MULTI_BUS                         0
-#endif
-
 /**
  * Find the I2C bus number by given a FDT I2C node.
  *