~ubuntu-branches/ubuntu/precise/linux-linaro-u8500/precise

« back to all changes in this revision

Viewing changes to arch/arm/mach-omap2/clock.h

  • Committer: Bazaar Package Importer
  • Author(s): John Rigby, Upstream Fixes, Andy Green, John Rigby
  • Date: 2011-04-14 12:16:06 UTC
  • Revision ID: james.westby@ubuntu.com-20110414121606-b77podkyqgr2oix7
Tags: 2.6.38-1002.3
[ Upstream Fixes ]

* MUSB: shutdown: Make sure block is awake before doing shutdown
  - LP: #745737
* Fixed gpio polarity of gpio USB-phy reset.
  - LP: #747639

[ Andy Green ]

* LINARO: SAUCE: disable CONFIG_OMAP_RESET_CLOCKS
  - LP: #752900

[ John Rigby ]

* Rebase to new upstreams:
  Linux v2.6.38.1
  linaro-linux-2.6.38-upstream-29Mar2011
  Ubuntu-2.6.38-7.35
* SAUCE: OMAP4: clock: wait for module to become accessible on
  a clk enable
  - LP: #745737
* Rebase to new upstreams:
  Linux v2.6.38.2
  linaro-linux-2.6.38-upstream-5Apr2011
  Ubuntu-2.6.38-8.41
  - LP: #732842
* Update configs for device tree, dvfs and lttng
* LINARO: add building of dtb's
* LINARO: SAUCE: Disable lowest operating freqs on omap34xx
  - LP: #732912

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *  linux/arch/arm/mach-omap2/clock.h
3
3
 *
4
4
 *  Copyright (C) 2005-2009 Texas Instruments, Inc.
5
 
 *  Copyright (C) 2004-2009 Nokia Corporation
 
5
 *  Copyright (C) 2004-2011 Nokia Corporation
6
6
 *
7
7
 *  Contacts:
8
8
 *  Richard Woodruff <r-woodruff2@ti.com>
18
18
 
19
19
#include <plat/clock.h>
20
20
 
21
 
/* The maximum error between a target DPLL rate and the rounded rate in Hz */
22
 
#define DEFAULT_DPLL_RATE_TOLERANCE     50000
23
 
 
24
21
/* CM_CLKSEL2_PLL.CORE_CLK_SRC bits (2XXX) */
25
22
#define CORE_CLK_SRC_32K                0x0
26
23
#define CORE_CLK_SRC_DPLL               0x1
55
52
long omap2_clk_round_rate(struct clk *clk, unsigned long rate);
56
53
int omap2_clk_set_rate(struct clk *clk, unsigned long rate);
57
54
int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent);
58
 
int omap2_dpll_set_rate_tolerance(struct clk *clk, unsigned int tolerance);
59
55
long omap2_dpll_round_rate(struct clk *clk, unsigned long target_rate);
60
56
unsigned long omap3_dpll_recalc(struct clk *clk);
61
57
unsigned long omap3_clkoutx2_recalc(struct clk *clk);
65
61
int omap3_noncore_dpll_set_rate(struct clk *clk, unsigned long rate);
66
62
int omap3_noncore_dpll_enable(struct clk *clk);
67
63
void omap3_noncore_dpll_disable(struct clk *clk);
 
64
int omap4_dpllmx_gatectrl_read(struct clk *clk);
 
65
void omap4_dpllmx_allow_gatectrl(struct clk *clk);
 
66
void omap4_dpllmx_deny_gatectrl(struct clk *clk);
68
67
 
69
68
#ifdef CONFIG_OMAP_RESET_CLOCKS
70
69
void omap2_clk_disable_unused(struct clk *clk);
83
82
int omap2_clksel_set_rate(struct clk *clk, unsigned long rate);
84
83
int omap2_clksel_set_parent(struct clk *clk, struct clk *new_parent);
85
84
 
 
85
/* clkt_iclk.c public functions */
 
86
extern void omap2_clkt_iclk_allow_idle(struct clk *clk);
 
87
extern void omap2_clkt_iclk_deny_idle(struct clk *clk);
 
88
 
86
89
u32 omap2_get_dpll_rate(struct clk *clk);
87
90
void omap2_init_dpll_parent(struct clk *clk);
88
91
 
129
132
extern const struct clkops clkops_omap2_dflt_wait;
130
133
extern const struct clkops clkops_dummy;
131
134
extern const struct clkops clkops_omap2_dflt;
 
135
extern const struct clkops clkops_omap4_dflt_wait;
132
136
 
133
137
extern struct clk_functions omap2_clk_functions;
134
138
extern struct clk *vclk, *sclk;
136
140
extern const struct clksel_rate gpt_32k_rates[];
137
141
extern const struct clksel_rate gpt_sys_rates[];
138
142
extern const struct clksel_rate gfx_l3_rates[];
 
143
extern const struct clksel_rate dsp_ick_rates[];
139
144
 
140
145
#if defined(CONFIG_ARCH_OMAP2) && defined(CONFIG_CPU_FREQ)
141
146
extern void omap2_clk_init_cpufreq_table(struct cpufreq_frequency_table **table);
145
150
#define omap2_clk_exit_cpufreq_table    0
146
151
#endif
147
152
 
 
153
extern const struct clkops clkops_omap2_iclk_dflt_wait;
 
154
extern const struct clkops clkops_omap2_iclk_dflt;
 
155
extern const struct clkops clkops_omap2_iclk_idle_only;
 
156
extern const struct clkops clkops_omap2_mdmclk_dflt_wait;
 
157
extern const struct clkops clkops_omap2xxx_dpll_ops;
148
158
extern const struct clkops clkops_omap3_noncore_dpll_ops;
 
159
extern const struct clkops clkops_omap3_core_dpll_ops;
 
160
extern const struct clkops clkops_omap4_dpllmx_ops;
149
161
 
150
162
#endif