]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: cm-t43: convert to DM_I2C
authorAnatolij Gustschin <agust@denx.de>
Sat, 3 Aug 2024 16:15:05 +0000 (18:15 +0200)
committerHeiko Schocher <hs@denx.de>
Fri, 9 Aug 2024 04:26:00 +0000 (06:26 +0200)
Conversion to DM_I2C is mandatory, enable DM_I2C
to disable board removal warning.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
board/compulab/cm_t43/cm_t43.c
configs/cm_t43_defconfig

index 181581926c37f5cbec3444b21c304f7186839c4b..983991ea462cb12e4e2a28a5e565ca2dabe698e4 100644 (file)
@@ -48,8 +48,6 @@ int board_init(void)
        gd->bd->bi_boot_params = CFG_SYS_SDRAM_BASE + 0x100;
        gpmc_init();
        set_i2c_pin_mux();
-       i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
-       i2c_probe(TPS65218_CHIP_PM);
 
        return 0;
 }
index e8603886d6a63dea159ee974754e0cfcd5936322..eabeee8b8daa1fddebea020ad4c5f7e1fccce6ea 100644 (file)
@@ -36,6 +36,7 @@ CONFIG_SPL_SYS_MALLOC_SIZE=0x800000
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x480
 CONFIG_SPL_FS_EXT4=y
 CONFIG_SPL_I2C=y
+# CONFIG_SPL_DM_I2C is not set
 CONFIG_SPL_MTD=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_NAND_DRIVERS=y
@@ -70,7 +71,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_BOOTP_SEND_HOSTNAME=y
 CONFIG_SYS_RX_ETH_BUFFER=64
-CONFIG_SYS_I2C_LEGACY=y
+CONFIG_DM_I2C=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_HSMMC2_8BIT=y