[PATCH v5] drivers/amba: create devices from device tree
Rob Herring
robherring2 at gmail.com
Sat Jun 11 11:10:50 EST 2011
On 06/10/2011 06:26 PM, Rob Herring wrote:
> 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.
Looks good. I will test it out on my tree.
Rob
More information about the devicetree-discuss
mailing list