The mvebu specific debug register is not accessible when the bind code runs in SPL. Skip it.
Signed-off-by: Baruch Siach <[email protected]> --- drivers/i2c/mvtwsi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c index 74ac0a4aa789..05560e112729 100644 --- a/drivers/i2c/mvtwsi.c +++ b/drivers/i2c/mvtwsi.c @@ -801,6 +801,10 @@ static int mvtwsi_i2c_ofdata_to_platdata(struct udevice *bus) static void twsi_disable_i2c_slave(struct mvtwsi_registers *twsi) { + /* The debug register is not accessible in early boot */ + if (IS_ENABLED(CONFIG_SPL_BUILD)) + return; + clrbits_le32(&twsi->debug, BIT(18)); } -- 2.20.1 _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

