aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2013-07-16 10:45:37 -0400
committerDaniel Lezcano <daniel.lezcano@linaro.org>2013-07-18 09:27:12 -0400
commit40777645eb7fe5b9184b339e1a8aa889993f6d75 (patch)
tree8caa5c87ae1e62f917661abd1dd55cfc60cf70cc /drivers/clocksource
parent9222d247bcbaacc40fe15549158f9d67523c1ace (diff)
clocksource: sun4i: Use the BIT macros where possible
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/sun4i_timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clocksource/sun4i_timer.c b/drivers/clocksource/sun4i_timer.c
index d4674e78ef35..bdf34d9910cb 100644
--- a/drivers/clocksource/sun4i_timer.c
+++ b/drivers/clocksource/sun4i_timer.c
@@ -24,12 +24,12 @@
24#include <linux/of_irq.h> 24#include <linux/of_irq.h>
25 25
26#define TIMER_IRQ_EN_REG 0x00 26#define TIMER_IRQ_EN_REG 0x00
27#define TIMER_IRQ_EN(val) (1 << val) 27#define TIMER_IRQ_EN(val) BIT(val)
28#define TIMER_IRQ_ST_REG 0x04 28#define TIMER_IRQ_ST_REG 0x04
29#define TIMER_CTL_REG(val) (0x10 * val + 0x10) 29#define TIMER_CTL_REG(val) (0x10 * val + 0x10)
30#define TIMER_CTL_ENABLE (1 << 0) 30#define TIMER_CTL_ENABLE BIT(0)
31#define TIMER_CTL_AUTORELOAD (1 << 1) 31#define TIMER_CTL_AUTORELOAD BIT(1)
32#define TIMER_CTL_ONESHOT (1 << 7) 32#define TIMER_CTL_ONESHOT BIT(7)
33#define TIMER_INTVAL_REG(val) (0x10 * val + 0x14) 33#define TIMER_INTVAL_REG(val) (0x10 * val + 0x14)
34#define TIMER_CNTVAL_REG(val) (0x10 * val + 0x18) 34#define TIMER_CNTVAL_REG(val) (0x10 * val + 0x18)
35 35