Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331449
b: refs/heads/master
c: 88d23b4
h: refs/heads/master
i:
  331447: da4ed3e
v: v3
  • Loading branch information
Michal Simek committed Oct 4, 2012
1 parent 1371e41 commit ad6b6e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 9998517a2789850e4e48bad6ada4de1f6c5a760d
refs/heads/master: 88d23b4462c9c9b8c8876d60f5b57d39b53c6227
10 changes: 9 additions & 1 deletion trunk/arch/microblaze/kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,15 @@ void __init time_init(void)
0
};
#endif
timer = of_find_compatible_node(NULL, NULL, "xlnx,xps-timer-1.00.a");
prop = of_get_property(of_chosen, "system-timer", NULL);
if (prop)
timer = of_find_node_by_phandle(be32_to_cpup(prop));
else
pr_info("No chosen timer found, using default\n");

if (!timer)
timer = of_find_compatible_node(NULL, NULL,
"xlnx,xps-timer-1.00.a");
BUG_ON(!timer);

timer_baseaddr = be32_to_cpup(of_get_property(timer, "reg", NULL));
Expand Down

0 comments on commit ad6b6e1

Please sign in to comment.