diff options
author | Rajendra Nayak <rnayak@ti.com> | 2009-12-09 02:47:16 +0100 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-12-12 01:00:46 +0100 |
commit | 16975a79c8e6ee424331f52649f2351d33c7b972 (patch) | |
tree | 4efc6d4329e467b7c12a8838f544d6cfe928735e /arch/arm/mach-omap2/clock.c | |
parent | ARM: OMAP4: PM: Move DPLL control apis to dpll.c (diff) | |
download | linux-16975a79c8e6ee424331f52649f2351d33c7b972.tar.xz linux-16975a79c8e6ee424331f52649f2351d33c7b972.zip |
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) if (v == OMAP3XXX_EN_DPLL_LPBYPASS || v == OMAP3XXX_EN_DPLL_FRBYPASS) return dd->clk_bypass->rate; + } else if (cpu_is_omap44xx()) { + if (v == OMAP4XXX_EN_DPLL_LPBYPASS || + v == OMAP4XXX_EN_DPLL_FRBYPASS || + v == OMAP4XXX_EN_DPLL_MNBYPASS) + return dd->clk_bypass->rate; } v = __raw_readl(dd->mult_div1_reg); |