ARM: OMAP2+: hwmod: add omap_hwmod_get_main_clk() API
authorTarun Kanti DebBarma <tarun.kanti@ti.com>
Wed, 4 Jul 2012 11:00:48 +0000 (05:00 -0600)
committerPaul Walmsley <paul@pwsan.com>
Wed, 4 Jul 2012 11:00:48 +0000 (05:00 -0600)
commitbed9d1bb4ed8c9bdaca77d31a2562c3a9dae43a7
treea773eb2abfae2b3fadd5a777182cfcb36ea3bdb9
parent55ffe163c8b4e2aa0a083000e02ec26efd71ea63
ARM: OMAP2+: hwmod: add omap_hwmod_get_main_clk() API

Add an API to get main clock name associated with a given @oh.
This will avoid the need to construct fclk names during early
initialization in order to get fclk handle using clk_get().

Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Kevin Hilman <khilman@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c
arch/arm/plat-omap/include/plat/omap_hwmod.h