From: Heiko Schocher Date: Wed, 16 Oct 2019 03:55:52 +0000 (+0200) Subject: mpc85xx, socrates: enable DM I2C X-Git-Tag: v2020.01-rc2~12^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=92746bac88b8cc5d0f42828640c1c5a7f19c2365;p=oweals%2Fu-boot.git mpc85xx, socrates: enable DM I2C enable DM I2C support for the socrates board. Signed-off-by: Heiko Schocher Reviewed-by: Priyanka Jain --- diff --git a/configs/socrates_defconfig b/configs/socrates_defconfig index be88cefe3e..80b5631d07 100644 --- a/configs/socrates_defconfig +++ b/configs/socrates_defconfig @@ -27,7 +27,6 @@ CONFIG_CMD_DHCP=y CONFIG_CMD_MII=y CONFIG_CMD_PING=y CONFIG_CMD_SNTP=y -CONFIG_CMD_DATE=y # CONFIG_CMD_HASH is not set CONFIG_CMD_EXT2=y # CONFIG_CMD_IRQ is not set @@ -36,6 +35,8 @@ CONFIG_DEFAULT_DEVICE_TREE="socrates" CONFIG_ENV_IS_IN_FLASH=y CONFIG_DM=y CONFIG_BLK=y +CONFIG_DM_I2C=y +CONFIG_SYS_I2C_FSL=y # CONFIG_MMC is not set CONFIG_MTD_NOR_FLASH=y CONFIG_FLASH_CFI_DRIVER=y @@ -43,6 +44,7 @@ CONFIG_SYS_FLASH_CFI=y CONFIG_PHY_MARVELL=y CONFIG_MII=y CONFIG_TSEC_ENET=y +CONFIG_DM_RTC=y CONFIG_RTC_RX8025=y CONFIG_SYS_NS16550=y CONFIG_USB=y diff --git a/include/configs/socrates.h b/include/configs/socrates.h index c35e8aed77..425d758e1d 100644 --- a/include/configs/socrates.h +++ b/include/configs/socrates.h @@ -160,23 +160,7 @@ #define CONFIG_SYS_BAUDRATE_TABLE \ {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200} -/* - * I2C - */ -#define CONFIG_SYS_I2C -#define CONFIG_SYS_I2C_FSL -#define CONFIG_SYS_FSL_I2C_SPEED 102124 -#define CONFIG_SYS_FSL_I2C_SLAVE 0x7F -#define CONFIG_SYS_FSL_I2C_OFFSET 0x3000 -#define CONFIG_SYS_FSL_I2C2_SPEED 102124 -#define CONFIG_SYS_FSL_I2C2_SLAVE 0x7F -#define CONFIG_SYS_FSL_I2C2_OFFSET 0x3100 - -/* I2C RTC */ -#define CONFIG_SYS_I2C_RTC_ADDR 0x32 /* at address 0x32 */ - -/* I2C W83782G HW-Monitoring IC */ -#define CONFIG_SYS_I2C_W83782G_ADDR 0x28 /* W83782G address */ +#define CONFIG_SYS_SPD_BUS_NUM 0 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4