From: Simon Goldschmidt Date: Wed, 24 Apr 2019 19:48:37 +0200 Subject: [U-Boot] [PATCH 2/2] arm: socfpga: fix compiling vining_fpga with DM_I2C In-Reply-To: <20190424174837.17631-1-simon.k.r.goldschmidt@gmail.com> References: <20190424174837.17631-1-simon.k.r.goldschmidt@gmail.com> Message-ID: <20190424174837.17631-2-simon.k.r.goldschmidt@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de commit 6ce1f2d2ce4d ("arm: socfpga: move vining_fpga to DM_I2C") in u-boot-socfpga/master fails to compile as vining has non-DM compatibility for I2C disabled. Signed-off-by: Simon Goldschmidt --- Please amend to commit 6ce1f2d2ce4d in u-boot-socfpga/master --- board/samtec/vining_fpga/socfpga.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/board/samtec/vining_fpga/socfpga.c b/board/samtec/vining_fpga/socfpga.c index d99aac6828..efc8ddf162 100644 --- a/board/samtec/vining_fpga/socfpga.c +++ b/board/samtec/vining_fpga/socfpga.c @@ -52,14 +52,7 @@ int misc_init_r(void) u32 serial; int ret; - /* EEPROM is at bus 0. */ - ret = i2c_set_bus_num(0); - if (ret) { - puts("Cannot select EEPROM I2C bus.\n"); - return 0; - } - - /* EEPROM is at address 0x50. */ + /* EEPROM is at address 0x50 (at bus CONFIG_SYS_EEPROM_BUS_NUM). */ ret = eeprom_read(0x50, 0, data, sizeof(data)); if (ret) { puts("Cannot read I2C EEPROM.\n"); -- 2.17.1