On Wed, Jun 02, 2010 at 12:12:00PM +0200, Richard R?jfors wrote: > Hi, > > I have a general question regarding the best way of registering I2C devices on a X86 system. > > On ARM I would have done it in the board config, pretty straight forward. > > On this X86 system the I2C bus is a PCI device, and different I2C > devices might be tied into the bus depending on which board the > device is populated on. Hmm, if it is a PCI device, then surely you should know the PCI ID you are binding too? > So my idea is to create a "mapping" driver. It opens the I2C > adapter, creates platform data for each I2C device and add them by > calling i2c_new_device. I don't find any better way since platform > data must be created and also translation from GPIO pins to > interrupt numbers. That might be a way, however there's not really a good way to add interrupts dynamically. -- Ben (ben@xxxxxxxxx, http://www.fluff.org/) 'a smiley only costs 4 bytes' -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html