diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-07-02 04:47:39 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2014-07-15 16:08:55 -0400 |
commit | 8111e01045c1b3ac6b5d3c2ee3b8dc562efdf3ae (patch) | |
tree | 17900c0b7c5eade9a3583385503306daf15d4553 /arch/arm/mach-omap2/clock.c | |
parent | 44b65e760e39323f4dad70a3080b7b624ed481ca (diff) |
ARM: OMAP2+: clock: introduce ti_clk_features flags
This shall be used to replace the cpu type checks around the clock code.
Actual bit values will be introduced in patches later.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Reviewed-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock.c')
-rw-r--r-- | arch/arm/mach-omap2/clock.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 591581a66532..7897053ce676 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c | |||
@@ -47,6 +47,11 @@ | |||
47 | u16 cpu_mask; | 47 | u16 cpu_mask; |
48 | 48 | ||
49 | /* | 49 | /* |
50 | * Clock features setup. Used instead of CPU type checks. | ||
51 | */ | ||
52 | struct ti_clk_features ti_clk_features; | ||
53 | |||
54 | /* | ||
50 | * clkdm_control: if true, then when a clock is enabled in the | 55 | * clkdm_control: if true, then when a clock is enabled in the |
51 | * hardware, its clockdomain will first be enabled; and when a clock | 56 | * hardware, its clockdomain will first be enabled; and when a clock |
52 | * is disabled in the hardware, its clockdomain will be disabled | 57 | * is disabled in the hardware, its clockdomain will be disabled |
@@ -731,3 +736,12 @@ void __init omap2_clk_print_new_rates(const char *hfclkin_ck_name, | |||
731 | (clk_get_rate(core_ck) / 1000000), | 736 | (clk_get_rate(core_ck) / 1000000), |
732 | (clk_get_rate(mpu_ck) / 1000000)); | 737 | (clk_get_rate(mpu_ck) / 1000000)); |
733 | } | 738 | } |
739 | |||
740 | /** | ||
741 | * ti_clk_init_features - init clock features struct for the SoC | ||
742 | * | ||
743 | * Initializes the clock features struct based on the SoC type. | ||
744 | */ | ||
745 | void __init ti_clk_init_features(void) | ||
746 | { | ||
747 | } | ||