aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-08-17 17:59:46 -0400
committerTom Rini <trini@konsulko.com>2021-08-30 14:10:06 -0400
commitde6957256980d9aa1bf11585e6e5b4740d3ccb97 (patch)
tree4204fc42c9bb04893beb2cf4e030010185d6182a /include
parent88cd7d0ea961ca11b1eeaaea8b7811573b103abb (diff)
downloadu-boot-de6957256980d9aa1bf11585e6e5b4740d3ccb97.zip
u-boot-de6957256980d9aa1bf11585e6e5b4740d3ccb97.tar.gz
u-boot-de6957256980d9aa1bf11585e6e5b4740d3ccb97.tar.bz2
Convert CONFIG_SYS_I2C_SOFT et al to Kconfig
This converts the following to Kconfig: CONFIG_SYS_I2C_SOFT CONFIG_SYS_I2C_SOFT_SPEED CONFIG_SYS_I2C_SOFT_SLAVE Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/ethernut5.h3
-rw-r--r--include/configs/km/km_arm.h4
-rw-r--r--include/configs/snapper9260.h3
-rw-r--r--include/configs/sunxi-common.h5
4 files changed, 1 insertions, 14 deletions
diff --git a/include/configs/ethernut5.h b/include/configs/ethernut5.h
index 3f26654..8b60ad5 100644
--- a/include/configs/ethernut5.h
+++ b/include/configs/ethernut5.h
@@ -98,9 +98,6 @@
#define CONFIG_SYS_MAX_I2C_BUS 1
#define CONFIG_SYS_I2C_LEGACY
-#define CONFIG_SYS_I2C_SOFT /* I2C bit-banged */
-#define CONFIG_SYS_I2C_SOFT_SPEED 100000
-#define CONFIG_SYS_I2C_SOFT_SLAVE 0
#define I2C_SOFT_DECLARATIONS
diff --git a/include/configs/km/km_arm.h b/include/configs/km/km_arm.h
index 6633bf8..a52df29 100644
--- a/include/configs/km/km_arm.h
+++ b/include/configs/km/km_arm.h
@@ -91,7 +91,6 @@
*/
#undef CONFIG_I2C_MVTWSI
#define CONFIG_SYS_I2C_LEGACY
-#define CONFIG_SYS_I2C_SOFT /* I2C bit-banged */
#define CONFIG_SYS_I2C_INIT_BOARD
#define CONFIG_KIRKWOOD_GPIO /* Enable GPIO Support */
@@ -125,9 +124,6 @@ extern void __set_direction(unsigned pin, int high);
#define I2C_DELAY udelay(1)
#define I2C_SOFT_DECLARATIONS
-#define CONFIG_SYS_I2C_SOFT_SLAVE 0x0
-#define CONFIG_SYS_I2C_SOFT_SPEED 100000
-
/* EEprom support 24C128, 24C256 valid for environment eeprom */
#define CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE
diff --git a/include/configs/snapper9260.h b/include/configs/snapper9260.h
index 529976e..2c89a6b 100644
--- a/include/configs/snapper9260.h
+++ b/include/configs/snapper9260.h
@@ -74,9 +74,6 @@
/* I2C - Bit-bashed */
#define CONFIG_SYS_I2C_LEGACY
-#define CONFIG_SYS_I2C_SOFT /* I2C bit-banged */
-#define CONFIG_SYS_I2C_SOFT_SPEED 100000
-#define CONFIG_SYS_I2C_SOFT_SLAVE 0x7F
#define CONFIG_SOFT_I2C_READ_REPEATED_START
#define I2C_INIT do { \
at91_set_gpio_output(AT91_PIN_PA23, 1); \
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index 958b850..4f7049a 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -205,10 +205,7 @@
#endif
#endif
-#if defined CONFIG_VIDEO_LCD_PANEL_I2C && !(defined CONFIG_SPL_BUILD)
-#define CONFIG_SYS_I2C_SOFT
-#define CONFIG_SYS_I2C_SOFT_SPEED 50000
-#define CONFIG_SYS_I2C_SOFT_SLAVE 0x00
+#if defined(CONFIG_VIDEO_LCD_PANEL_I2C)
/* We use pin names in Kconfig and sunxi_name_to_gpio() */
#define CONFIG_SOFT_I2C_GPIO_SDA soft_i2c_gpio_sda
#define CONFIG_SOFT_I2C_GPIO_SCL soft_i2c_gpio_scl