From: Anatolij Gustschin Date: Sat, 3 Aug 2024 16:15:05 +0000 (+0200) Subject: board: cm-t43: convert to DM_I2C X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=58e6b61cb557e81745f6b74b08fbb910376ed1d6;p=u-boot.git board: cm-t43: convert to DM_I2C Conversion to DM_I2C is mandatory, enable DM_I2C to disable board removal warning. Signed-off-by: Anatolij Gustschin --- diff --git a/board/compulab/cm_t43/cm_t43.c b/board/compulab/cm_t43/cm_t43.c index 181581926c..983991ea46 100644 --- a/board/compulab/cm_t43/cm_t43.c +++ b/board/compulab/cm_t43/cm_t43.c @@ -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; } diff --git a/configs/cm_t43_defconfig b/configs/cm_t43_defconfig index e8603886d6..eabeee8b8d 100644 --- a/configs/cm_t43_defconfig +++ b/configs/cm_t43_defconfig @@ -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