aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/smp_scu.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2014-07-30 21:07:00 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-08-02 03:51:52 -0400
commitf8f3d4ed0d64c59296d79e9d219d8f388562de35 (patch)
treedf3833bf9bbec226922b5e45d80d6c55dbdb7b67 /arch/arm/kernel/smp_scu.c
parentc8611d712ad01289a0b6a83cc93bba3a1ef4e990 (diff)
ARM: 8121/1: smp_scu: use macro for SCU enable bit
Use macro instead of magic number for SCU enable bit. Signed-off-by: Shawn Guo <shawn.guo@freescale.com> Acked-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/smp_scu.c')
-rw-r--r--arch/arm/kernel/smp_scu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/kernel/smp_scu.c b/arch/arm/kernel/smp_scu.c
index 1aafa0d785eb..c947508f84e6 100644
--- a/arch/arm/kernel/smp_scu.c
+++ b/arch/arm/kernel/smp_scu.c
@@ -17,6 +17,7 @@
17#include <asm/cputype.h> 17#include <asm/cputype.h>
18 18
19#define SCU_CTRL 0x00 19#define SCU_CTRL 0x00
20#define SCU_ENABLE (1 << 0)
20#define SCU_CONFIG 0x04 21#define SCU_CONFIG 0x04
21#define SCU_CPU_STATUS 0x08 22#define SCU_CPU_STATUS 0x08
22#define SCU_INVALIDATE 0x0c 23#define SCU_INVALIDATE 0x0c
@@ -50,10 +51,10 @@ void scu_enable(void __iomem *scu_base)
50 51
51 scu_ctrl = readl_relaxed(scu_base + SCU_CTRL); 52 scu_ctrl = readl_relaxed(scu_base + SCU_CTRL);
52 /* already enabled? */ 53 /* already enabled? */
53 if (scu_ctrl & 1) 54 if (scu_ctrl & SCU_ENABLE)
54 return; 55 return;
55 56
56 scu_ctrl |= 1; 57 scu_ctrl |= SCU_ENABLE;
57 writel_relaxed(scu_ctrl, scu_base + SCU_CTRL); 58 writel_relaxed(scu_ctrl, scu_base + SCU_CTRL);
58 59
59 /* 60 /*