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<[email protected]>
Acked-by: Linus Walleij<[email protected]>
Signed-off-by: Rob Herring<[email protected]>
Reviewed-by: Arnd Bergmann<[email protected]>
[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<[email protected]>
---

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
_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to