Skip to contentSkip to conversation

add SPARC support to i2c-ali1535

RFC PATCH David Miller 1 participant 1 message Jul 6, 2011

lore
Share & tools
lore
#0 lore raw

From: "corentin.labbe" <[email protected]>
Date: Tue, 14 Jun 2011 14:59:41 +0200

Quoted 3 lines

This patch enable i2c-ali1535 to works under SPARC architecture.

I wait for your comments/approval before sending it to the lm_sensors mailing lists.

Implementing this as a PCI driver doesn't make any sense.

It's be better to probe and fetch the register information by using the openfirmware tree driver interfaces, a table of "struct of_device_id", a "platform_driver" that points to that of_device_id table, and a call to platform_device_register() to register that platform_driver.

Also, even if you attach the I2C controller, you won't be able to enumerate the underlying I2C devices properly. The openfirmware device tree will need to be used in order to do that as well.