diff options
author | Tarun Kanti DebBarma <tarun.kanti@ti.com> | 2012-07-04 05:00:48 -0600 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-07-04 05:00:48 -0600 |
commit | bed9d1bb4ed8c9bdaca77d31a2562c3a9dae43a7 (patch) | |
tree | a773eb2abfae2b3fadd5a777182cfcb36ea3bdb9 /arch/arm/plat-omap | |
parent | 55ffe163c8b4e2aa0a083000e02ec26efd71ea63 (diff) | |
download | op-kernel-dev-bed9d1bb4ed8c9bdaca77d31a2562c3a9dae43a7.zip op-kernel-dev-bed9d1bb4ed8c9bdaca77d31a2562c3a9dae43a7.tar.gz |
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')
-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 c835b71..da22acd 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 |