mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 06:14:27 +00:00
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:
parent
05a92e03c3
commit
7f6897133f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259127
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue