[PATCH RFC 2/3] i2c-nomadik: turn the platform driver to an amba driver

Linus Walleij linus.walleij at linaro.org
Thu May 31 06:16:54 EDT 2012


On Thu, May 31, 2012 at 4:37 PM, Ben Dooks <ben.dooks at codethink.co.uk> wrote:
> On 31/05/12 02:51, Linus Walleij wrote:
>>
>> You will need some add-on patch to the db8500 device tree moving this
>> over to the AMBA (PrimeCell) bus abstraction.
>
> What does AMBA win us over the platform device here?

In Alessandro's case I guess it's that he can use his PCI-to-AMBA wrapper, and
there is no similar PCI-to platformdevice wrapper. So it saves some work
on his part.

But since the device has PrimeCell ID registers, this is really the
right thing to
do anyway, since autodetecting from hardware is allways NiceToDo(TM).
Else ST and us shouldn't have put the magic numbers (0xB105F00D) in there
anyway.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list