mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-26 03:16:15 +02:00
qi-delay-after-stop.patch
Bitbang I2C could do with delay after last stop before next back-back transaction Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
parent
4414f130bd
commit
6e84650e2f
@ -53,7 +53,8 @@ enum i2c_bitbang_states {
|
||||
|
||||
IBS_STOP1,
|
||||
IBS_STOP2,
|
||||
IBS_STOP3
|
||||
IBS_STOP3,
|
||||
IBS_STOP4
|
||||
};
|
||||
|
||||
/* context for bitbang GPIO pins and transaction */
|
||||
|
@ -193,6 +193,11 @@ int i2c_next_state(struct i2c_bitbang * bb)
|
||||
break;
|
||||
|
||||
case IBS_STOP3:
|
||||
(bb->set)(1, 1);
|
||||
bb->state = IBS_STOP4;
|
||||
break;
|
||||
|
||||
case IBS_STOP4:
|
||||
(bb->set)(1, 1);
|
||||
return 1; /* done */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user