board: gateworks: venice: poll I2C lines to wait for GSC firmware
authorTim Harvey <tharvey@gateworks.com>
Fri, 11 Nov 2022 16:03:07 +0000 (08:03 -0800)
committerStefano Babic <sbabic@denx.de>
Tue, 31 Jan 2023 17:08:23 +0000 (18:08 +0100)
commit3041e094e45dba1853431e88d79a990d86fa80d7
tree105c8095a15ff0e4b65b797f456c644ec08f0420
parenta4dc847b6017cfedd246623ed29e6f85ae0b67c6
board: gateworks: venice: poll I2C lines to wait for GSC firmware

In some situations the GSC firmware where the EEPROM containing the
model and DRAM configuration may not be ready by the time the SoC
is ready to talk to it over I2C.

Instead of a hard delay, poll the I2C lines to wait until they are
released to avoid the I2C drivers 'Arbitation lost' error message.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
arch/arm/dts/imx8mm-venice-u-boot.dtsi
arch/arm/dts/imx8mm-venice.dts
arch/arm/dts/imx8mn-venice-u-boot.dtsi
arch/arm/dts/imx8mn-venice.dts
arch/arm/dts/imx8mp-venice-u-boot.dtsi
arch/arm/dts/imx8mp-venice.dts
board/gateworks/venice/spl.c