Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374192
b: refs/heads/master
c: 5993b3e
h: refs/heads/master
v: v3
  • Loading branch information
Rob Herring committed Apr 11, 2013
1 parent fcce5be commit 8a1e54a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 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: 7a0eca712118862a2ac25413b7ee24deb27808ea
refs/heads/master: 5993b3ee98c6b1a86fc0f0a4bed12a1dd9f0eae5
19 changes: 0 additions & 19 deletions trunk/arch/arm/mach-highbank/highbank.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
#include <asm/cacheflush.h>
#include <asm/cputype.h>
#include <asm/smp_plat.h>
#include <asm/hardware/arm_timer.h>
#include <asm/hardware/timer-sp.h>
#include <asm/hardware/cache-l2x0.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
Expand Down Expand Up @@ -90,33 +88,16 @@ static void __init highbank_init_irq(void)
#endif
}

static struct clk_lookup lookup = {
.dev_id = "sp804",
.con_id = NULL,
};

static void __init highbank_timer_init(void)
{
int irq;
struct device_node *np;
void __iomem *timer_base;

/* Map system registers */
np = of_find_compatible_node(NULL, NULL, "calxeda,hb-sregs");
sregs_base = of_iomap(np, 0);
WARN_ON(!sregs_base);

np = of_find_compatible_node(NULL, NULL, "arm,sp804");
timer_base = of_iomap(np, 0);
WARN_ON(!timer_base);
irq = irq_of_parse_and_map(np, 0);

of_clk_init(NULL);
lookup.clk = of_clk_get(np, 0);
clkdev_add(&lookup);

sp804_clocksource_and_sched_clock_init(timer_base + 0x20, "timer1");
sp804_clockevents_init(timer_base, irq, "timer0");

clocksource_of_init();
}
Expand Down

0 comments on commit 8a1e54a

Please sign in to comment.