Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184794
b: refs/heads/master
c: a51ba28
h: refs/heads/master
v: v3
  • Loading branch information
Sanjeev Premi authored and Paul Walmsley committed Feb 24, 2010
1 parent 4535362 commit 760d62e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3cc4a2fc2ed7727828f410ab092111cb56cefd61
refs/heads/master: a51ba284076437ce36efc8dd9b15983546c043f7
16 changes: 16 additions & 0 deletions trunk/arch/arm/mach-omap2/clock34xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/err.h>

#include <plat/cpu.h>
#include <plat/clock.h>
Expand Down Expand Up @@ -286,6 +287,7 @@ static int __init omap3xxx_clk_arch_init(void)
{
struct clk *osc_sys_ck, *dpll1_ck, *arm_fck, *core_ck;
unsigned long osc_sys_rate;
bool err = 0;

if (!cpu_is_omap34xx())
return 0;
Expand All @@ -295,9 +297,23 @@ static int __init omap3xxx_clk_arch_init(void)

/* XXX test these for success */
dpll1_ck = clk_get(NULL, "dpll1_ck");
if (WARN(IS_ERR(dpll1_ck), "Failed to get dpll1_ck.\n"))
err = 1;

arm_fck = clk_get(NULL, "arm_fck");
if (WARN(IS_ERR(arm_fck), "Failed to get arm_fck.\n"))
err = 1;

core_ck = clk_get(NULL, "core_ck");
if (WARN(IS_ERR(core_ck), "Failed to get core_ck.\n"))
err = 1;

osc_sys_ck = clk_get(NULL, "osc_sys_ck");
if (WARN(IS_ERR(osc_sys_ck), "Failed to get osc_sys_ck.\n"))
err = 1;

if (err)
return -ENOENT;

/* REVISIT: not yet ready for 343x */
if (clk_set_rate(dpll1_ck, mpurate))
Expand Down

0 comments on commit 760d62e

Please sign in to comment.