Author: loos
Date: Mon Dec  9 12:01:17 2013
New Revision: 259127
URL: http://svnweb.freebsd.org/changeset/base/259127

Log:
  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)

Modified:
  head/sys/arm/broadcom/bcm2835/bcm2835_bsc.c

Modified: head/sys/arm/broadcom/bcm2835/bcm2835_bsc.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_bsc.c Mon Dec  9 11:51:17 2013        
(r259126)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_bsc.c Mon Dec  9 12:01:17 2013        
(r259127)
@@ -404,7 +404,7 @@ bcm_bsc_transfer(device_t dev, struct ii
        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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to