diff options
author | Rajendra Nayak <rnayak@ti.com> | 2009-12-08 20:47:16 -0500 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-12-11 19:00:46 -0500 |
commit | 16975a79c8e6ee424331f52649f2351d33c7b972 (patch) | |
tree | 4efc6d4329e467b7c12a8838f544d6cfe928735e /arch/arm/mach-omap2/clock.c | |
parent | a1391d276866845018920329bc2a3a82ab322af8 (diff) |
ARM: OMAP4: PM: Add support for OMAP4 dpll api's
Most of the dpll api's from dpll.c are reused for OMAP4.
This patch does extend a few api's for OMAP4 support.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock.c')
-rw-r--r-- | arch/arm/mach-omap2/clock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 5cb2dcb5b23e..61ee23596ea8 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c | |||
@@ -249,6 +249,11 @@ u32 omap2_get_dpll_rate(struct clk *clk) | |||
249 | if (v == OMAP3XXX_EN_DPLL_LPBYPASS || | 249 | if (v == OMAP3XXX_EN_DPLL_LPBYPASS || |
250 | v == OMAP3XXX_EN_DPLL_FRBYPASS) | 250 | v == OMAP3XXX_EN_DPLL_FRBYPASS) |
251 | return dd->clk_bypass->rate; | 251 | return dd->clk_bypass->rate; |
252 | } else if (cpu_is_omap44xx()) { | ||
253 | if (v == OMAP4XXX_EN_DPLL_LPBYPASS || | ||
254 | v == OMAP4XXX_EN_DPLL_FRBYPASS || | ||
255 | v == OMAP4XXX_EN_DPLL_MNBYPASS) | ||
256 | return dd->clk_bypass->rate; | ||
252 | } | 257 | } |
253 | 258 | ||
254 | v = __raw_readl(dd->mult_div1_reg); | 259 | v = __raw_readl(dd->mult_div1_reg); |