OMAP: HWMOD: Add support for early device register into omap device layer
authorThara Gopinath <thara@ti.com>
Wed, 24 Feb 2010 19:05:58 +0000 (12:05 -0700)
committerPaul Walmsley <paul@pwsan.com>
Wed, 24 Feb 2010 19:05:58 +0000 (12:05 -0700)
commitc23a97d377077c67e01f7526de3a411b316ee4f6
tree84020f6b04f236f89e2bf08cbefc092de4485542
parent358f0e630d5409ab3837b86db3595560eae773b6
OMAP: HWMOD: Add support for early device register into omap device layer

This patch adds support in omap device layer to register devices
as early platform devices. Certain devices needed during system boot up
like timers, gpio etc can be registered as early devices. This will
allow for them to be probed very early on during system boot up.
This patch adds a parameter is_early_device in omap_device_build.
Depending on this parameter a call to early_platform_add_devices
or platform_register_device is made.

Signed-off-by: Thara Gopinath <thara@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/plat-omap/include/plat/omap_device.h
arch/arm/plat-omap/omap_device.c