]> git.sur5r.net Git - u-boot/commitdiff
i2c: Finish dropping use of CONFIG_I2C_HARD
authorSimon Glass <sjg@chromium.org>
Sat, 13 May 2017 03:09:56 +0000 (21:09 -0600)
committerHeiko Schocher <hs@denx.de>
Mon, 15 May 2017 04:18:30 +0000 (06:18 +0200)
Drop use of this long-deprecated option.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
README
cmd/eeprom.c
common/board_f.c
common/stdio.c
scripts/config_whitelist.txt

diff --git a/README b/README
index 86f0814f7928676252a873e56996ac77f91c7e53..11fa84ccc459b7a8eb3f24524bf981b7f2450046 100644 (file)
--- a/README
+++ b/README
@@ -2204,7 +2204,9 @@ The following options need to be configured:
 
                If you do not have i2c muxes on your board, omit this define.
 
-- Legacy I2C Support:  CONFIG_HARD_I2C
+----under removal:
+
+- Legacy I2C Support:  CONFIG_SOFT_I2C
 
                NOTE: It is intended to move drivers to CONFIG_SYS_I2C which
                provides the following compelling advantages:
@@ -2213,14 +2215,12 @@ The following options need to be configured:
                - approved multibus support
                - better i2c mux support
 
-               ** CONFIG_HARD_I2C is now being removed **
-
-----under removal:
+               ** CONFIG_SOFT_I2C is now being removed **
 
-               In both cases you will need to define CONFIG_SYS_I2C_SPEED
-               to be the frequency (in Hz) at which you wish your i2c bus
-               to run and CONFIG_SYS_I2C_SLAVE to be the address of this node (ie
-               the CPU's i2c node address).
+               With CONFIG_SOFT_I2C you will need to define
+               CONFIG_SYS_I2C_SPEED to be the frequency (in Hz) at which you
+               wish your i2c bus to run and CONFIG_SYS_I2C_SLAVE to be the
+               address of this node (ie the CPU's i2c node address).
 
                Now, the u-boot i2c code for the mpc8xx
                (arch/powerpc/cpu/mpc8xx/i2c.c) sets the CPU up as a master node
index 0a0e4a2c1cc8f365c5f4d9539dd91eeec24d0e9e..e43566bc56db6baaec5c3324319a5d6d4919a083 100644 (file)
@@ -73,11 +73,9 @@ void eeprom_init(int bus)
 #endif
 
        /* I2C EEPROM */
-#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C)
 #if defined(CONFIG_SYS_I2C)
        if (bus >= 0)
                i2c_set_bus_num(bus);
-#endif
        i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
 #endif
 }
index d9431ee79a86bbcb8d4a3fceabbc8f0d3ae0dc69..eed3e7be2a17b8853780eb986765fd153d01495b 100644 (file)
@@ -184,7 +184,7 @@ __weak int dram_init_banksize(void)
        return 0;
 }
 
-#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C)
+#if defined(CONFIG_SYS_I2C)
 static int init_func_i2c(void)
 {
        puts("I2C:   ");
@@ -765,7 +765,7 @@ static const init_fnc_t init_sequence_f[] = {
        misc_init_f,
 #endif
        INIT_FUNC_WATCHDOG_RESET
-#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C)
+#if defined(CONFIG_SYS_I2C)
        init_func_i2c,
 #endif
 #if defined(CONFIG_HARD_SPI)
index 4d300175301877c1aeeb438fc67ccb3389fedceb..ee4f0bda9ea72f69efbefcaa3849a3f5b8f422ca 100644 (file)
@@ -21,7 +21,7 @@
 #include <logbuff.h>
 #endif
 
-#if defined(CONFIG_HARD_I2C) || defined(CONFIG_SYS_I2C)
+#if defined(CONFIG_SYS_I2C)
 #include <i2c.h>
 #endif
 
@@ -346,9 +346,6 @@ int stdio_add_devices(void)
 #ifdef CONFIG_SYS_I2C
        i2c_init_all();
 #else
-#if defined(CONFIG_HARD_I2C)
-       i2c_init (CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
-#endif
 #endif
 #ifdef CONFIG_DM_VIDEO
        /*
index 7646bb68420c31e9fe4a7fdadd8bc697a73df80e..da37e49c831a341916cb809c3a3b0fb18101da01 100644 (file)
@@ -1134,7 +1134,6 @@ CONFIG_G_DNL_UMS_VENDOR_NUM
 CONFIG_H264_FREQ
 CONFIG_H8300
 CONFIG_HALEAKALA
-CONFIG_HARD_I2C
 CONFIG_HARD_SPI
 CONFIG_HASH_VERIFY
 CONFIG_HAS_DATAFLASH