From 00daf591e489268dff8628c0208f0b929940ba84 Mon Sep 17 00:00:00 2001 From: Eric Lee Date: Mon, 12 Oct 2015 14:46:28 +0800 Subject: [PATCH] Init i2c0 earlier so that it can read board version when Test# is used --- board/embedian/smarcfimx6/smarcfimx6.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/embedian/smarcfimx6/smarcfimx6.c b/board/embedian/smarcfimx6/smarcfimx6.c index 02c9725..4810cd2 100644 --- a/board/embedian/smarcfimx6/smarcfimx6.c +++ b/board/embedian/smarcfimx6/smarcfimx6.c @@ -1229,8 +1229,6 @@ int board_init(void) #endif #ifdef CONFIG_SYS_I2C_MXC - setup_i2c(0, CONFIG_SYS_I2C_SPEED, - 0x50, &i2c_pad_info1); setup_i2c(2, CONFIG_SYS_I2C_SPEED, 0x70, &i2c_pad_info3); @@ -1279,6 +1277,9 @@ int board_late_init(void) int checkboard(void) { + setup_i2c(0, CONFIG_SYS_I2C_SPEED, + 0x50, &i2c_pad_info1); + struct smarcfimx6_id header; if (read_eeprom(&header) < 0) -- 1.9.1