提交 03377e58 编写于 作者: S Soren Brinkmann 提交者: Michal Simek

arm: zynq: timer: Fix comment style

Fixing multi line comment style at two locations.
Signed-off-by: NSoren Brinkmann <soren.brinkmann@xilinx.com>
Tested-by: NJosh Cartwright <josh.cartwright@ni.com>
上级 7a645976
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
#define XTTCPS_CNT_CNTRL_DISABLE_MASK 0x1 #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 * work across most input frequency, but it may need to be more dynamic
*/ */
#define PRESCALE_EXPONENT 11 /* 2 ^ PRESCALE_EXPONENT = PRESCALE */ #define PRESCALE_EXPONENT 11 /* 2 ^ PRESCALE_EXPONENT = PRESCALE */
...@@ -89,8 +90,10 @@ static void xttcps_set_interval(struct xttcps_timer *timer, ...@@ -89,8 +90,10 @@ static void xttcps_set_interval(struct xttcps_timer *timer,
__raw_writel(cycles, timer->base_addr + XTTCPS_INTR_VAL_OFFSET); __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 |= CNT_CNTRL_RESET;
ctrl_reg &= ~XTTCPS_CNT_CNTRL_DISABLE_MASK; ctrl_reg &= ~XTTCPS_CNT_CNTRL_DISABLE_MASK;
__raw_writel(ctrl_reg, timer->base_addr + XTTCPS_CNT_CNTRL_OFFSET); __raw_writel(ctrl_reg, timer->base_addr + XTTCPS_CNT_CNTRL_OFFSET);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册