Merge tag 'stable/for-linus-3.16-rc7-tag' of git://git.kernel.org/pub/scm/linux/kerne...
[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);
ed1ebc49 24void omap2xxx_clkt_dpllcore_init(struct clk_hw *hw);
7a2bd1cc
PW
25unsigned long omap2_clk_apll54_recalc(struct clk_hw *hw,
26 unsigned long parent_rate);
27unsigned long omap2_clk_apll96_recalc(struct clk_hw *hw,
28 unsigned long parent_rate);
5f039377 29unsigned long omap2xxx_clk_get_core_rate(void);
49214640 30u32 omap2xxx_get_apll_clkin(void);
87a1b26c 31u32 omap2xxx_get_sysclkdiv(void);
feec1277 32void omap2xxx_clk_prepare_for_reboot(void);
baa689b8
PW
33void omap2xxx_clkt_vps_check_bootloader_rates(void);
34void omap2xxx_clkt_vps_late_init(void);
d8a94458 35
59b479e0 36#ifdef CONFIG_SOC_OMAP2420
81b34fbe 37int omap2420_clk_init(void);
d8a94458 38#else
b481cea3 39#define omap2420_clk_init() do { } while(0)
d8a94458
PW
40#endif
41
59b479e0 42#ifdef CONFIG_SOC_OMAP2430
81b34fbe
PW
43int omap2430_clk_init(void);
44#else
b481cea3 45#define omap2430_clk_init() do { } while(0)
81b34fbe
PW
46#endif
47
b6ffa050 48extern void __iomem *prcm_clksrc_ctrl;
d8a94458 49
ed1ebc49
RN
50extern struct clk_hw *dclk_hw;
51int omap2_enable_osc_ck(struct clk_hw *hw);
52void omap2_disable_osc_ck(struct clk_hw *hw);
53int omap2_clk_apll96_enable(struct clk_hw *hw);
54int omap2_clk_apll54_enable(struct clk_hw *hw);
55void omap2_clk_apll96_disable(struct clk_hw *hw);
56void omap2_clk_apll54_disable(struct clk_hw *hw);
d8a94458
PW
57
58#endif
This page took 0.300462 seconds and 5 git commands to generate.