[PATCH v5] drivers/amba: create devices from device tree

Grant Likely grant.likely at secretlab.ca
Sat Jun 11 11:01:39 EST 2011


On Fri, Jun 10, 2011 at 5:26 PM, Rob Herring <grant.likely at secretlab.ca> wrote:
                                 ^^^^^^^^^^^
Hmmm, that was odd.  stgit plays strange games when sending patches sometimes.

g.

> Add a function to create amba_devices (i.e. primecell peripherals)
> from device tree nodes. The device tree scanning is done by the
> of_platform_populate() function which can call of_amba_device_create
> based on a match table entry.
>
> Nodes with a "arm,primecell-periphid" property can override the h/w
> peripheral id value.
>
> Based on the original work by Jeremy Kerr.
>
> v5: - restored Jeremy's original s-o-b line
>    - changed to using arm,primecell compatible value
>    - moved all code to driver/of/platform.c so platform and amba
>      devices are created in the same way.
> (v4 was posted by Rob Herring)
>
> Signed-off-by: Jeremy Kerr <jeremy.kerr at canonical.com>
> Acked-by: Linus Walleij <linus.walleij at linaro.org>
> Signed-off-by: Rob Herring <rob.herring at calxeda.com>
> Reviewed-by: Arnd Bergmann <arnd at arndb.de>
> [grant.likely: add Jeremy's original s-o-b line, changes from review
>               comments, and moved all code to drivers/of/platform.c]
> Signed-off-by: Grant Likely <grant.likely at secretlab.ca>
> ---
>
> Hey Rob.  I took a good look at the patches you posted, and how all
> this stuff was being done, and it turns out to be a lot less impact if
> all of it is rolled into driver/of/platform.c.  Take a look and let me
> know what you think.
>
> g.


More information about the devicetree-discuss mailing list