Commit 00daf591e489268dff8628c0208f0b929940ba84
1 parent
4f6e7f3afe
Exists in
smarc-imx_v2014.04_3.14.28_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
... | ... | @@ -1229,8 +1229,6 @@ |
1229 | 1229 | #endif |
1230 | 1230 | |
1231 | 1231 | #ifdef CONFIG_SYS_I2C_MXC |
1232 | - setup_i2c(0, CONFIG_SYS_I2C_SPEED, | |
1233 | - 0x50, &i2c_pad_info1); | |
1234 | 1232 | setup_i2c(2, CONFIG_SYS_I2C_SPEED, |
1235 | 1233 | 0x70, &i2c_pad_info3); |
1236 | 1234 | |
... | ... | @@ -1279,6 +1277,9 @@ |
1279 | 1277 | |
1280 | 1278 | int checkboard(void) |
1281 | 1279 | { |
1280 | + setup_i2c(0, CONFIG_SYS_I2C_SPEED, | |
1281 | + 0x50, &i2c_pad_info1); | |
1282 | + | |
1282 | 1283 | struct smarcfimx6_id header; |
1283 | 1284 | |
1284 | 1285 | if (read_eeprom(&header) < 0) |