Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355243
b: refs/heads/master
c: 03377e5
h: refs/heads/master
i:
  355241: b8d61d8
  355239: f3476fc
v: v3
  • Loading branch information
Soren Brinkmann authored and Michal Simek committed Jan 28, 2013
1 parent 3066683 commit 53db0da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 7a645976aecab6ee21ce29703a1133dd26a8f216
refs/heads/master: 03377e5852309edc90acbb03f6e2dfef70c020f2
9 changes: 6 additions & 3 deletions trunk/arch/arm/mach-zynq/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@

#define XTTCPS_CNT_CNTRL_DISABLE_MASK 0x1

/* Setup the timers to use pre-scaling, using a fixed value for now that will
/*
* Setup the timers to use pre-scaling, using a fixed value for now that will
* work across most input frequency, but it may need to be more dynamic
*/
#define PRESCALE_EXPONENT 11 /* 2 ^ PRESCALE_EXPONENT = PRESCALE */
Expand Down Expand Up @@ -89,8 +90,10 @@ static void xttcps_set_interval(struct xttcps_timer *timer,

__raw_writel(cycles, timer->base_addr + XTTCPS_INTR_VAL_OFFSET);

/* Reset the counter (0x10) so that it starts from 0, one-shot
mode makes this needed for timing to be right. */
/*
* Reset the counter (0x10) so that it starts from 0, one-shot
* mode makes this needed for timing to be right.
*/
ctrl_reg |= CNT_CNTRL_RESET;
ctrl_reg &= ~XTTCPS_CNT_CNTRL_DISABLE_MASK;
__raw_writel(ctrl_reg, timer->base_addr + XTTCPS_CNT_CNTRL_OFFSET);
Expand Down

0 comments on commit 53db0da

Please sign in to comment.