Searched hist:"491739 bb7456b95bb863421f6cd76af0ff9b797c" (Results 1 – 2 of 2) sorted by relevance
| /rk3399_rockchip-uboot/drivers/i2c/ |
| H A D | designware_i2c.h | 491739bb7456b95bb863421f6cd76af0ff9b797c Thu Dec 06 00:04:16 UTC 2012 Armando Visconti <armando.visconti@st.com> designware_i2c: Added s/w generation of stop bit
In the newer versions of designware i2c IP there is the possibility of configuring it with IC_EMPTYFIFO_HOLD_MASTER_EN=1, which basically requires the s/w to generate the stop bit condition directly, as the h/w will not automatically generate it when TX_FIFO is empty.
To avoid generation of an extra 0x0 byte sent as data, the IC_STOP command must be sent along with the last IC_CMD.
This patch always writes bit[9] of ic_data_cmd even in the older versions, assuming that it is a noop there.
Signed-off-by: Armando Visconti <armando.visconti@st.com>
|
| H A D | designware_i2c.c | 491739bb7456b95bb863421f6cd76af0ff9b797c Thu Dec 06 00:04:16 UTC 2012 Armando Visconti <armando.visconti@st.com> designware_i2c: Added s/w generation of stop bit
In the newer versions of designware i2c IP there is the possibility of configuring it with IC_EMPTYFIFO_HOLD_MASTER_EN=1, which basically requires the s/w to generate the stop bit condition directly, as the h/w will not automatically generate it when TX_FIFO is empty.
To avoid generation of an extra 0x0 byte sent as data, the IC_STOP command must be sent along with the last IC_CMD.
This patch always writes bit[9] of ic_data_cmd even in the older versions, assuming that it is a noop there.
Signed-off-by: Armando Visconti <armando.visconti@st.com>
|