[Bug 198783] I2C driver for AM335X enhancement

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 22 04:43:33 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198783

            Bug ID: 198783
           Summary: I2C driver for AM335X enhancement
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: freebsd-arm at FreeBSD.org
          Reporter: elbarto at bocal.org

Created attachment 154646
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154646&action=edit
patch i2c am335X

Hello,

This patch enhanced the i2c driver for AM335X.
This add support for read(2), write(2) and the required ioctl by i2c(8)
(I2CSTART, I2CSTOP, I2CRPTSTART).
Now it is possible to dump the on-board eeprom with i2c :
i2c -a 0x50 -d r -w 16 -c 4096 -o 0 -b > eeprom.bin

Note:

The write syscall use an internal buffer of 1024 because in
sys/dev/iicbus/iic.c it's limited to 1024.

Cheers,

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-arm mailing list