Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2013 12:01:17 +0000 (UTC)
From:      Luiz Otavio O Souza <loos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r259127 - head/sys/arm/broadcom/bcm2835
Message-ID:  <201312091201.rB9C1HhH079033@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312091201.rB9C1HhH079033>