Bring the RPi I2C driver in line with ti_i2c. Make it treat any slave

address as a 7-bit address.

Approved by:	adrian (mentor)
This commit is contained in:
Luiz Otavio O Souza 2013-12-09 12:01:17 +00:00
parent 05a92e03c3
commit 7f6897133f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259127

View file

@ -404,7 +404,7 @@ bcm_bsc_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs)
for (i = 0; i < nmsgs; i++) {
/* Write the slave address. */
BCM_BSC_WRITE(sc, BCM_BSC_SLAVE, (msgs[i].slave >> 1) & 0x7f);
BCM_BSC_WRITE(sc, BCM_BSC_SLAVE, msgs[i].slave);
/* Write the data length. */
BCM_BSC_WRITE(sc, BCM_BSC_DLEN, msgs[i].len);