Commit 92746bac88b8cc5d0f42828640c1c5a7f19c2365
Committed by
Priyanka Jain
1 parent
4c65a449ae
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
mpc85xx, socrates: enable DM I2C
enable DM I2C support for the socrates board. Signed-off-by: Heiko Schocher <hs@denx.de> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Showing 2 changed files with 4 additions and 18 deletions Side-by-side Diff
configs/socrates_defconfig
... | ... | @@ -27,7 +27,6 @@ |
27 | 27 | CONFIG_CMD_MII=y |
28 | 28 | CONFIG_CMD_PING=y |
29 | 29 | CONFIG_CMD_SNTP=y |
30 | -CONFIG_CMD_DATE=y | |
31 | 30 | # CONFIG_CMD_HASH is not set |
32 | 31 | CONFIG_CMD_EXT2=y |
33 | 32 | # CONFIG_CMD_IRQ is not set |
... | ... | @@ -36,6 +35,8 @@ |
36 | 35 | CONFIG_ENV_IS_IN_FLASH=y |
37 | 36 | CONFIG_DM=y |
38 | 37 | CONFIG_BLK=y |
38 | +CONFIG_DM_I2C=y | |
39 | +CONFIG_SYS_I2C_FSL=y | |
39 | 40 | # CONFIG_MMC is not set |
40 | 41 | CONFIG_MTD_NOR_FLASH=y |
41 | 42 | CONFIG_FLASH_CFI_DRIVER=y |
... | ... | @@ -43,6 +44,7 @@ |
43 | 44 | CONFIG_PHY_MARVELL=y |
44 | 45 | CONFIG_MII=y |
45 | 46 | CONFIG_TSEC_ENET=y |
47 | +CONFIG_DM_RTC=y | |
46 | 48 | CONFIG_RTC_RX8025=y |
47 | 49 | CONFIG_SYS_NS16550=y |
48 | 50 | CONFIG_USB=y |
include/configs/socrates.h
... | ... | @@ -160,23 +160,7 @@ |
160 | 160 | #define CONFIG_SYS_BAUDRATE_TABLE \ |
161 | 161 | {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200} |
162 | 162 | |
163 | -/* | |
164 | - * I2C | |
165 | - */ | |
166 | -#define CONFIG_SYS_I2C | |
167 | -#define CONFIG_SYS_I2C_FSL | |
168 | -#define CONFIG_SYS_FSL_I2C_SPEED 102124 | |
169 | -#define CONFIG_SYS_FSL_I2C_SLAVE 0x7F | |
170 | -#define CONFIG_SYS_FSL_I2C_OFFSET 0x3000 | |
171 | -#define CONFIG_SYS_FSL_I2C2_SPEED 102124 | |
172 | -#define CONFIG_SYS_FSL_I2C2_SLAVE 0x7F | |
173 | -#define CONFIG_SYS_FSL_I2C2_OFFSET 0x3100 | |
174 | - | |
175 | -/* I2C RTC */ | |
176 | -#define CONFIG_SYS_I2C_RTC_ADDR 0x32 /* at address 0x32 */ | |
177 | - | |
178 | -/* I2C W83782G HW-Monitoring IC */ | |
179 | -#define CONFIG_SYS_I2C_W83782G_ADDR 0x28 /* W83782G address */ | |
163 | +#define CONFIG_SYS_SPD_BUS_NUM 0 | |
180 | 164 | |
181 | 165 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4 |
182 | 166 |