Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331333
b: refs/heads/master
c: 5817d10
h: refs/heads/master
i:
  331331: 9893e17
v: v3
  • Loading branch information
Sebastian Hesselbarth authored and Jason Cooper committed Sep 21, 2012
1 parent cea0566 commit 7d58c9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0510c8a014432b45f09509d1fb450922ec96b40d
refs/heads/master: 5817d10b8b8a6003bfb7551d0c3feb92deb74ed2
19 changes: 9 additions & 10 deletions trunk/arch/arm/mach-dove/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
#include <plat/addr-map.h>
#include "common.h"

static int get_tclk(void);

/*****************************************************************************
* I/O Address Mapping
****************************************************************************/
Expand Down Expand Up @@ -70,12 +68,13 @@ void __init dove_map_io(void)
/*****************************************************************************
* CLK tree
****************************************************************************/
static int dove_tclk;
static struct clk *tclk;

static void __init clk_init(void)
static void __init dove_clk_init(void)
{
tclk = clk_register_fixed_rate(NULL, "tclk", NULL, CLK_IS_ROOT,
get_tclk());
dove_tclk);

orion_clkdev_init(tclk);
}
Expand Down Expand Up @@ -188,16 +187,16 @@ void __init dove_init_early(void)
orion_time_set_base(TIMER_VIRT_BASE);
}

static int get_tclk(void)
static int __init dove_find_tclk(void)
{
/* use DOVE_RESET_SAMPLE_HI/LO to detect tclk */
return 166666667;
}

static void __init dove_timer_init(void)
{
dove_tclk = dove_find_tclk();
orion_time_init(BRIDGE_VIRT_BASE, BRIDGE_INT_TIMER1_CLR,
IRQ_DOVE_BRIDGE, get_tclk());
IRQ_DOVE_BRIDGE, dove_tclk);
}

struct sys_timer dove_timer = {
Expand Down Expand Up @@ -285,16 +284,16 @@ void __init dove_sdio1_init(void)

void __init dove_init(void)
{
printk(KERN_INFO "Dove 88AP510 SoC, ");
printk(KERN_INFO "TCLK = %dMHz\n", (get_tclk() + 499999) / 1000000);
pr_info("Dove 88AP510 SoC, TCLK = %d MHz.\n",
(dove_tclk + 499999) / 1000000);

#ifdef CONFIG_CACHE_TAUROS2
tauros2_init();
#endif
dove_setup_cpu_mbus();

/* Setup root of clk tree */
clk_init();
dove_clk_init();

/* internal devices that every board has */
dove_rtc_init();
Expand Down

0 comments on commit 7d58c9c

Please sign in to comment.