ARM: OMAP: omap_device: Add a method to build an omap_device from a DT node
authorBenoit Cousson <b-cousson@ti.com>
Wed, 10 Aug 2011 11:32:08 +0000 (13:32 +0200)
committerKevin Hilman <khilman@ti.com>
Tue, 4 Oct 2011 16:52:23 +0000 (09:52 -0700)
commitdc2d07ebaea839a6e0fa47588c7984931f3c9c71
tree5733bcf7467de9d2a7aceb5cf088c7b7eafb50d3
parenta4f6cdb0672fe9f171b1e8a0faa121b5d76e1c4a
ARM: OMAP: omap_device: Add a method to build an omap_device from a DT node

Add a notifier called during device_add phase. If an of_node is present,
retrieve the hwmod entry in order to populate properly the omap_device
structure.

For the moment the resource from the device-tree are overloaded.
DT does not support named resource yet, and thus, most driver will not
work without that information.

Add a documentation to capture the specifics OMAP bindings needed for
device-tree support.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Documentation/devicetree/bindings/arm/omap/omap.txt [new file with mode: 0644]
arch/arm/plat-omap/omap_device.c