Merge branch 'for-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
[deliverable/linux.git] / arch / arm / mach-omap2 / clock2xxx.h
CommitLineData
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
14unsigned long omap2_table_mpu_recalc(struct clk_hw *clk,
15 unsigned long parent_rate);
16int omap2_select_table_rate(struct clk_hw *hw, unsigned long rate,
17 unsigned long parent_rate);
18long omap2_round_to_table_rate(struct clk_hw *hw, unsigned long rate,
19 unsigned long *parent_rate);
20unsigned long omap2xxx_sys_clk_recalc(struct clk_hw *clk,
21 unsigned long parent_rate);
22unsigned long omap2_osc_clk_recalc(struct clk_hw *clk,
23 unsigned long parent_rate);
24unsigned long omap2_dpllcore_recalc(struct clk_hw *hw,
25 unsigned long parent_rate);
26int omap2_reprogram_dpllcore(struct clk_hw *clk, unsigned long rate,
27 unsigned long parent_rate);
28void omap2xxx_clkt_dpllcore_init(struct clk_hw *hw);
7a2bd1cc
PW
29unsigned long omap2_clk_apll54_recalc(struct clk_hw *hw,
30 unsigned long parent_rate);
31unsigned long omap2_clk_apll96_recalc(struct clk_hw *hw,
32 unsigned long parent_rate);
5f039377 33unsigned long omap2xxx_clk_get_core_rate(void);
49214640 34u32 omap2xxx_get_apll_clkin(void);
87a1b26c 35u32 omap2xxx_get_sysclkdiv(void);
feec1277 36void omap2xxx_clk_prepare_for_reboot(void);
baa689b8
PW
37void omap2xxx_clkt_vps_check_bootloader_rates(void);
38void omap2xxx_clkt_vps_late_init(void);
d8a94458 39
59b479e0 40#ifdef CONFIG_SOC_OMAP2420
81b34fbe 41int omap2420_clk_init(void);
d8a94458 42#else
b481cea3 43#define omap2420_clk_init() do { } while(0)
d8a94458
PW
44#endif
45
59b479e0 46#ifdef CONFIG_SOC_OMAP2430
81b34fbe
PW
47int omap2430_clk_init(void);
48#else
b481cea3 49#define omap2430_clk_init() do { } while(0)
81b34fbe
PW
50#endif
51
b6ffa050 52extern void __iomem *prcm_clksrc_ctrl;
d8a94458 53
ed1ebc49
RN
54extern struct clk_hw *dclk_hw;
55int omap2_enable_osc_ck(struct clk_hw *hw);
56void omap2_disable_osc_ck(struct clk_hw *hw);
57int omap2_clk_apll96_enable(struct clk_hw *hw);
58int omap2_clk_apll54_enable(struct clk_hw *hw);
59void omap2_clk_apll96_disable(struct clk_hw *hw);
60void omap2_clk_apll54_disable(struct clk_hw *hw);
d8a94458
PW
61
62#endif
This page took 0.264826 seconds and 5 git commands to generate.