IIC support?

Warner Losh imp at bsdimp.com
Fri Mar 2 18:26:08 UTC 2007


> Krassimir Slavchev wrote this message on Fri, Mar 02, 2007 at 17:03 +0200:
> > I have problems to access the iic eeprom from userland. Even after set 
> > SCAN_IICBUS in iicbus.c nothing has been detected. I have made some 
> > tests from the bootloader to read/write from/to the eeprom and they work.
> > Is there any known problems with TWI or any differences between board 
> > settings?
> 
> You can load the iic driver, and attempt to access the device through
> iic's ioctl interface...  As Warner mentioned, iic isn't really self
> enumerating, so it requires you to privde the address of the device
> that you are accessing...

HEre's what I ahve at work:

# ID Eeprom
hint.icee.0.at="iicbus0"
hint.icee.0.addr=0x80
hint.icee.0.type=8
hint.icee.0.size=2048
hint.icee.0.rd_sz=256
hint.icee.0.wr_sz=16
# Config Eeprom
hint.icee.1.at="iicbus0"
hint.icee.1.addr=0xa6
hint.icee.1.type=16
hint.icee.1.size=32768
hint.icee.1.rd_sz=256
hint.icee.1.wr_sz=16


More information about the freebsd-arm mailing list