[Bug 198817] [PATCH] Update i2c(8) to use the I2CRDRW ioctl
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Mar 23 02:05:58 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198817
Bug ID: 198817
Summary: [PATCH] Update i2c(8) to use the I2CRDRW ioctl
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: New
Keywords: patch
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: elbarto at bocal.org
Keywords: patch
Created attachment 154684
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154684&action=edit
patch i2c(8)
This patch updates i2c(8) to use the I2CRDRW ioctl instead of the old start /
stop /read / write method.
i2c_read and i2c_write have been merged to one function.
Scanning works now on beaglebone :
$ i2c -s
Scanning I2C devices on /dev/iic0: 0x24 0x34 0x50
And dumping the on-board eeprom works too :
$ i2c -a 0x50 -d r -o 0 -w16 -c 16 -b | hexdump -Cv
00000000 aa 55 33 ee 41 33 33 35 42 4e 4c 54 30 30 43 30 |.U3.A335BNLT00C0|
00000010
Cheers,
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list