Commit 9c861c521fd531b07a4a6ecc42c2cf709d5cc6c7
1 parent
9b04f2d1b8
Exists in
smarc-imx-l5.0.0_1.0.0-ga
Init i2c0 earlier so that it can read board version when Test# is used
Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff
board/embedian/smarcfimx6/smarcfimx6.c
... | ... | @@ -1230,8 +1230,6 @@ |
1230 | 1230 | #endif |
1231 | 1231 | |
1232 | 1232 | #ifdef CONFIG_SYS_I2C_MXC |
1233 | - setup_i2c(0, CONFIG_SYS_I2C_SPEED, | |
1234 | - 0x50, &i2c_pad_info1); | |
1235 | 1233 | setup_i2c(2, CONFIG_SYS_I2C_SPEED, |
1236 | 1234 | 0x70, &i2c_pad_info3); |
1237 | 1235 | |
... | ... | @@ -1280,6 +1278,9 @@ |
1280 | 1278 | |
1281 | 1279 | int checkboard(void) |
1282 | 1280 | { |
1281 | + setup_i2c(0, CONFIG_SYS_I2C_SPEED, | |
1282 | + 0x50, &i2c_pad_info1); | |
1283 | + | |
1283 | 1284 | struct smarcfimx6_id header; |
1284 | 1285 | |
1285 | 1286 | if (read_eeprom(&header) < 0) |