"cell-index" vs. "index" vs. no index in I2C device nodes

Grant Likely grant.likely at secretlab.ca
Fri Jun 6 02:37:42 EST 2008


On Thu, Jun 5, 2008 at 10:25 AM, Timur Tabi <timur at freescale.com> wrote:
> Josh Boyer wrote:
>
>> And it does.  It does so by the unique "regs" properties and
>> unit-names.  You can assign the index that the i2c subsystem needs
>> based on probe order, like I already said.
>
> The probe order is not sufficient on platforms that specifically enumerate their
> I2C (or whatever) devices.  For instance, in order to do audio playback on an
> MPC8610, SSI1 needs to use DMA channel 0.  The SSI driver specifically needs to
> find the register addresses for DMA channel 0.

then you use a phandle for that; but that entirely different from bus
enumeration because it describes a real property of the hardware.

Cheers,
g.

>
> --
> Timur Tabi
> Linux kernel developer at Freescale
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.



More information about the Linuxppc-dev mailing list