diff options
| -rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 15 | ||||
| -rw-r--r-- | arch/arm/plat-omap/include/plat/omap_hwmod.h | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index ebdf0016e536..ff76ef1d7232 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
| @@ -3633,3 +3633,18 @@ void __init omap_hwmod_init(void) | |||
| 3633 | 3633 | ||
| 3634 | inited = true; | 3634 | inited = true; |
| 3635 | } | 3635 | } |
| 3636 | |||
| 3637 | /** | ||
| 3638 | * omap_hwmod_get_main_clk - get pointer to main clock name | ||
| 3639 | * @oh: struct omap_hwmod * | ||
| 3640 | * | ||
| 3641 | * Returns the main clock name assocated with @oh upon success, | ||
| 3642 | * or NULL if @oh is NULL. | ||
| 3643 | */ | ||
| 3644 | const char *omap_hwmod_get_main_clk(struct omap_hwmod *oh) | ||
| 3645 | { | ||
| 3646 | if (!oh) | ||
| 3647 | return NULL; | ||
| 3648 | |||
| 3649 | return oh->main_clk; | ||
| 3650 | } | ||
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h index 30f55eb8b0bc..6132972aff37 100644 --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h | |||
| @@ -648,6 +648,8 @@ int omap_hwmod_pad_route_irq(struct omap_hwmod *oh, int pad_idx, int irq_idx); | |||
| 648 | 648 | ||
| 649 | extern void __init omap_hwmod_init(void); | 649 | extern void __init omap_hwmod_init(void); |
| 650 | 650 | ||
| 651 | const char *omap_hwmod_get_main_clk(struct omap_hwmod *oh); | ||
| 652 | |||
| 651 | /* | 653 | /* |
| 652 | * Chip variant-specific hwmod init routines - XXX should be converted | 654 | * Chip variant-specific hwmod init routines - XXX should be converted |
| 653 | * to use initcalls once the initial boot ordering is straightened out | 655 | * to use initcalls once the initial boot ordering is straightened out |
