diff options
author | Tarun Kanti DebBarma <tarun.kanti@ti.com> | 2012-07-04 13:00:48 +0200 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-07-04 13:00:48 +0200 |
commit | bed9d1bb4ed8c9bdaca77d31a2562c3a9dae43a7 (patch) | |
tree | a773eb2abfae2b3fadd5a777182cfcb36ea3bdb9 /arch/arm/plat-omap/include | |
parent | ARM: OMAP3+: dpll: optimize noncore dpll locking logic (diff) | |
download | linux-bed9d1bb4ed8c9bdaca77d31a2562c3a9dae43a7.tar.xz linux-bed9d1bb4ed8c9bdaca77d31a2562c3a9dae43a7.zip |
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>
Diffstat (limited to 'arch/arm/plat-omap/include')
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap_hwmod.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h index c835b7194ff5..da22acd0ce7a 100644 --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h @@ -629,6 +629,8 @@ int omap_hwmod_no_setup_reset(struct omap_hwmod *oh); int omap_hwmod_pad_route_irq(struct omap_hwmod *oh, int pad_idx, int irq_idx); +const char *omap_hwmod_get_main_clk(struct omap_hwmod *oh); + /* * Chip variant-specific hwmod init routines - XXX should be converted * to use initcalls once the initial boot ordering is straightened out |