summaryrefslogtreecommitdiff
path: root/drivers/i2c/mtk_i2c.c
diff options
context:
space:
mode:
authorAniket Limaye <a-limaye@ti.com>2025-04-22 15:49:51 +0530
committerHeiko Schocher <hs@denx.de>2025-04-22 13:03:43 +0200
commit5b0c6e02f83c9407103cc472e3313335c4f92dff (patch)
tree15ea69f3c3c1cbdb9929e347bcebfe57a3e78f45 /drivers/i2c/mtk_i2c.c
parent520b57ee4763a81a165eabf700a585ae67d79aa7 (diff)
i2c: omap24xx_i2c: support CONFIG for repeated start in DM_I2C xfer
Repeated Start Condition (Sr) can be used to transfer multiple i2c msgs without sending a Stop condition (P). So far, the driver default was to always send a Stop condition after every i2c msg. Add support for a config option (CONFIG_SYS_I2C_OMAP24XX_REPEATED_START) to disable sending the Stop condition by default. If this config is enabled, Stop condition will be sent only if explicitly requested in the msg flags OR if it is the last msg in the transfer. Consequently, handle the Repeated Start condition (Sr) in the next msg by not calling the wait_for_bb() check since it will simply timeout in the absence of a stop condition (BB will be 1 until Stop is programmed) Signed-off-by: Aniket Limaye <a-limaye@ti.com> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/i2c/mtk_i2c.c')
0 files changed, 0 insertions, 0 deletions