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:
Andy Green authored and Andy Green committed 2008-11-28 10:16:39 +00:00
1 parent 4414f130bd
commit 6e84650e2f
2 files changed
+7 -1

No files matched your search

+2 -1
View File
@@ -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 */
+5
View File
@@ -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 */
}