mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-19 00:44:44 -04:00
km/common: i2c deblock: enabled print of i2c deblock status
Enable printout of i2c deblocking status if chips were in block state or deblocking failed. Signed-off-by: Stefan Bigler <stefan.bigler@keymile.com> cc: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
4daea6fff3
commit
c7506c2b03
@ -139,6 +139,7 @@ int i2c_make_abort(void)
|
|||||||
sda_state = get_sda();
|
sda_state = get_sda();
|
||||||
if (scl_state && sda_state) {
|
if (scl_state && sda_state) {
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
printf("[INFO] i2c abort after %d clocks\n", i);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -146,6 +147,8 @@ int i2c_make_abort(void)
|
|||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
for (i = 0; i < 5; i++)
|
for (i = 0; i < 5; i++)
|
||||||
i2c_write_start_seq();
|
i2c_write_start_seq();
|
||||||
|
else
|
||||||
|
printf("[ERROR] i2c abort failed\n");
|
||||||
|
|
||||||
/* respect stop setup time */
|
/* respect stop setup time */
|
||||||
udelay(DELAY_ABORT_SEQ);
|
udelay(DELAY_ABORT_SEQ);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user