Commit | Line | Data |
---|---|---|
d8a94458 PW |
1 | /* |
2 | * OMAP2 clock function prototypes and macros | |
3 | * | |
81b34fbe PW |
4 | * Copyright (C) 2005-2010 Texas Instruments, Inc. |
5 | * Copyright (C) 2004-2010 Nokia Corporation | |
d8a94458 PW |
6 | */ |
7 | ||
81b34fbe PW |
8 | #ifndef __ARCH_ARM_MACH_OMAP2_CLOCK2XXX_H |
9 | #define __ARCH_ARM_MACH_OMAP2_CLOCK2XXX_H | |
d8a94458 | 10 | |
ed1ebc49 RN |
11 | #include <linux/clk-provider.h> |
12 | #include "clock.h" | |
13 | ||
14 | unsigned long omap2_table_mpu_recalc(struct clk_hw *clk, | |
15 | unsigned long parent_rate); | |
16 | int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate, | |
17 | unsigned long parent_rate); | |
18 | long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate, | |
19 | unsigned long *parent_rate); | |
20 | unsigned long omap2xxx_sys_clk_recalc(struct clk_hw *clk, | |
21 | unsigned long parent_rate); | |
22 | unsigned long omap2_osc_clk_recalc(struct clk_hw *clk, | |
23 | unsigned long parent_rate); | |
ed1ebc49 | 24 | void omap2xxx_clkt_dpllcore_init(struct clk_hw *hw); |
5f039377 | 25 | unsigned long omap2xxx_clk_get_core_rate(void); |
87a1b26c | 26 | u32 omap2xxx_get_sysclkdiv(void); |
feec1277 | 27 | void omap2xxx_clk_prepare_for_reboot(void); |
baa689b8 PW |
28 | void omap2xxx_clkt_vps_check_bootloader_rates(void); |
29 | void omap2xxx_clkt_vps_late_init(void); | |
d8a94458 | 30 | |
59b479e0 | 31 | #ifdef CONFIG_SOC_OMAP2420 |
81b34fbe | 32 | int omap2420_clk_init(void); |
d8a94458 | 33 | #else |
b481cea3 | 34 | #define omap2420_clk_init() do { } while(0) |
d8a94458 PW |
35 | #endif |
36 | ||
59b479e0 | 37 | #ifdef CONFIG_SOC_OMAP2430 |
81b34fbe PW |
38 | int omap2430_clk_init(void); |
39 | #else | |
b481cea3 | 40 | #define omap2430_clk_init() do { } while(0) |
81b34fbe PW |
41 | #endif |
42 | ||
ed1ebc49 | 43 | extern struct clk_hw *dclk_hw; |
d8a94458 PW |
44 | |
45 | #endif |