]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rtc: Drop CFG_SYS_RTC_BUS_NUM
authorSimon Glass <sjg@chromium.org>
Sun, 11 Aug 2024 14:50:37 +0000 (08:50 -0600)
committerHeiko Schocher <hs@denx.de>
Tue, 13 Aug 2024 04:12:33 +0000 (06:12 +0200)
This option is very old and the migration deadline was years ago. Drop
it so that the I2C system can be simplified.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
README
cmd/date.c
include/configs/ls1028aqds.h
include/configs/ls1028ardb.h
include/configs/ls1046afrwy.h
include/configs/lx2160aqds.h
include/configs/lx2160ardb.h
include/configs/lx2162aqds.h
include/configs/m53menlo.h
include/configs/tqma6_wru4.h
include/i2c.h

diff --git a/README b/README
index c3821c5ce4ee01821ffd78fe7a51d48f5afddbcb..37c959cc9c22c2ac7eb984d2f480e2a90c64e2dd 100644 (file)
--- a/README
+++ b/README
@@ -893,11 +893,6 @@ The following options need to be configured:
 
                will skip addresses 0x50 and 0x68 on a board with one I2C bus
 
-               CFG_SYS_RTC_BUS_NUM
-
-               If defined, then this indicates the I2C bus number for the RTC.
-               If not defined, then U-Boot assumes that RTC is on I2C bus 0.
-
                CONFIG_SOFT_I2C_READ_REPEATED_START
 
                defining this will force the i2c_read() function in
index 755adec1e71e9dfe6d31ce243392989b31a295b2..bdb3e199b4367ff3794236523ea907e15ed043d3 100644 (file)
@@ -42,12 +42,6 @@ static int do_date(struct cmd_tbl *cmdtp, int flag, int argc,
                        return CMD_RET_FAILURE;
                }
        }
-#elif CONFIG_IS_ENABLED(SYS_I2C_LEGACY)
-       old_bus = i2c_get_bus_num();
-       i2c_set_bus_num(CFG_SYS_RTC_BUS_NUM);
-#else
-       old_bus = I2C_GET_BUS();
-       I2C_SET_BUS(CFG_SYS_RTC_BUS_NUM);
 #endif
 
        switch (argc) {
index 769ece901c19e29bcf5335e4cbfba3c34adee46a..ed93b51d8085a8a1b145fab5d2e4f90802d30d80 100644 (file)
@@ -47,7 +47,6 @@
 #endif
 
 /* RTC */
-#define CFG_SYS_RTC_BUS_NUM         1
 #define I2C_MUX_CH_RTC                 0xB
 
 /* Store environment at top of flash */
index 0f591e3c4ab5c71a49babc2e23a7de65cf55364a..d44ce45fd6b8424a7941b83875fa096795661a89 100644 (file)
@@ -10,8 +10,6 @@
 
 #define COUNTER_FREQUENCY_REAL         (get_board_sys_clk() / 4)
 
-#define CFG_SYS_RTC_BUS_NUM         0
-
 /* Store environment at top of flash */
 
 /*
index 5e03a962d10e42df5e7ab6d869535fc024b4e048..21804fc6654ad95d57886d91fbbefe635a7abc35 100644 (file)
@@ -66,7 +66,6 @@
 
 /* RTC */
 #define CFG_SYS_I2C_RTC_ADDR           0x51  /* Channel 0 I2C bus 0*/
-#define CFG_SYS_RTC_BUS_NUM                    0
 
 /*
  * Environment
index 3a316e73308f30d928002d4d2dc5e24feb33fa02..5b397e23d89e55ff0deed4457d087126a11d1b14 100644 (file)
@@ -8,9 +8,6 @@
 
 #include "lx2160a_common.h"
 
-/* RTC */
-#define CFG_SYS_RTC_BUS_NUM            0
-
 /* MAC/PHY configuration */
 
 /* Initial environment variables */
index 6404b359111f7dfa2f86e59c723f9db7c23c9e10..e700a7b11359b1c9f23f45264e1316e64d65350d 100644 (file)
@@ -8,9 +8,6 @@
 
 #include "lx2160a_common.h"
 
-/* RTC */
-#define CFG_SYS_RTC_BUS_NUM            4
-
 #if defined(CONFIG_FSL_MC_ENET)
 #define AQR113C_PHY_ADDR1              0x0
 #define AQR113C_PHY_ADDR2              0x08
index 54d7cea4c599dbb65a76e9195bac660e2ca37943..2d0db47b33436105e73cf7cd86f141d648daa65b 100644 (file)
@@ -10,9 +10,6 @@
 
 /* USB */
 
-/* RTC */
-#define CFG_SYS_RTC_BUS_NUM            0
-
 /* Initial environment variables */
 #define CFG_EXTRA_ENV_SETTINGS         \
        EXTRA_ENV_SETTINGS                      \
index 9cf46b2c3624dcdc4a5de3a92801f718d065a646..c245cbe427b00e2cba39abc88594b43055195c0d 100644 (file)
@@ -57,8 +57,6 @@
 #define CFG_FEC_MXC_PHYADDR            0x0
 #endif
 
-#define CFG_SYS_RTC_BUS_NUM            1 /* I2C2 */
-
 /*
  * RTC
  */
index e06fc7fe1559fc0b54d4169b907000b62cd64083..5e21463305a8f38f27cae4e1b3081f5e90e3fff5 100644 (file)
@@ -16,7 +16,6 @@
 /* Watchdog */
 
 /* Config on-board RTC */
-#define CFG_SYS_RTC_BUS_NUM            2
 #define CFG_SYS_I2C_RTC_ADDR           0x68
 /* Turn off RTC square-wave output to save battery */
 
index 622540c82658977540cd160ed242159251b944d2..45ca3d63e3fde5fb0598be03586c9d9c84748c2d 100644 (file)
@@ -655,11 +655,6 @@ void i2c_early_init_f(void);
 #undef CFG_SYS_I2C_DIRECT_BUS
 #endif
 
-/* define the I2C bus number for RTC and DTT if not already done */
-#if !defined(CFG_SYS_RTC_BUS_NUM)
-#define CFG_SYS_RTC_BUS_NUM            0
-#endif
-
 struct i2c_adapter {
        void            (*init)(struct i2c_adapter *adap, int speed,
                                int slaveaddr);