summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/i2c.c
AgeCommit message (Collapse)Author
2006-02-26if ipmi is on the machine: instead of (confusingly) failing in match,Theo de Raadt
bail out in attach, and also say why; ok marco
2006-02-08add a member to the i2c_attach args so that a controller can pass aDavid Gwynne
cookie down to the device. the most obvious use of this is to pass a device its ofw node on sparc64 and macppc so it can configure itself more appropriately. ok kettenis@ henning@ deraadt@
2006-01-29Disable iic whenever ipmi is enabled. This fixes boxes like Sun x4200 thatMarco Peereboom
freak out when more than one device driver touch the i2c devices. Reported by: Srebrenko Sehic <ssehic at gmail dot com> ok kettenis@
2006-01-01switch from macppc-specific maciic(4) driver to the generic iic(4),Theo de Raadt
after teaching it to use a function pointer to get back to the OFW scan.. this will also help the sparc64 later; ok kettenis
2005-12-27no longer use ia_compat; tested by a fewTheo de Raadt
2005-12-27make direct mappings fail for now, since noone will test that for meTheo de Raadt
2005-12-27the name belongs in "quotes"Theo de Raadt
2005-12-26if probe falls, iic_print should print the name we attempted to match underTheo de Raadt
2005-12-23upon startup, only scan-and-attach devices which specify an addressTheo de Raadt
attribute; if that is not set, then we hope something later will guess the address. this must be revisited later on, to avoid double-attachment
2005-12-22permit outsider to call iic_printTheo de Raadt
2005-12-20Do bus scanning only if underlying controller asked for it.Alexander Yurchenko
2005-12-19First attempt to have a table of known I2C slave devices that weAlexander Yurchenko
have drivers for. iic(4) will scan the bus for them and try to attach an appropriate driver. For now iic(4) scans for all possible addresses for debugging purposes. ok deraadt@
2005-11-15instead of passing OF nodes down to the drivers, pass name/compat stringTheo de Raadt
pointers. This lets their match() functions actually make real decisions. OF-capable machines will pass name/compat pointers, but other machines will not. grudging ok kettenis
2004-05-23I2C framework originally written by Steve C. Woodford and Jason R. ThorpeAlexander Yurchenko
for NetBSD (r). This framework supports various i2c master controllers: - dumb bit-bang controllers - a few styles of automated controllers that give you control over sending start/stop conditions on the i2c bus - automated controllers that are too smart for its own good, giving software no control over start/stop conditions - smbus controllers by emulating smbus protocol with i2c commands i2c slave devices need their addresses to be specified in the kernel config file, no device discovery presented. ok deraadt@