Several zynq/zynqmp boards are reading mac address from eeprom that's
why device is already selected. For zc1751-dc1 this is not used that's
why i2c dev needs to be called.
In general setting the first controller is good thing to do.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
@pytest.mark.buildconfigspec("cmd_i2c")
def test_i2c_probe(u_boot_console):
+ expected_response = "Setting bus to 0"
+ response = u_boot_console.run_command("i2c dev 0")
+ assert(expected_response in response)
expected_response = "Valid chip addresses:"
response = u_boot_console.run_command("i2c probe")
assert(expected_response in response)