projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8611d7
)
ARM: 8121/1: smp_scu: use macro for SCU enable bit
author
Shawn Guo
<
[email protected]
>
Thu, 31 Jul 2014 01:07:00 +0000
(
02:07
+0100)
committer
Russell King
<
[email protected]
>
Sat, 2 Aug 2014 07:51:52 +0000
(08:51 +0100)
Use macro instead of magic number for SCU enable bit.
Signed-off-by: Shawn Guo <
[email protected]
>
Acked-by: Soren Brinkmann <
[email protected]
>
Signed-off-by: Russell King <
[email protected]
>
arch/arm/kernel/smp_scu.c
patch
|
blob
|
history
diff --git
a/arch/arm/kernel/smp_scu.c
b/arch/arm/kernel/smp_scu.c
index 1aafa0d785eb835dd50d6036a855fc2bbf8ea32e..c947508f84e682059ea475db11cbc9dffbc1111d 100644
(file)
--- a/
arch/arm/kernel/smp_scu.c
+++ b/
arch/arm/kernel/smp_scu.c
@@
-17,6
+17,7
@@
#include <asm/cputype.h>
#define SCU_CTRL 0x00
+#define SCU_ENABLE (1 << 0)
#define SCU_CONFIG 0x04
#define SCU_CPU_STATUS 0x08
#define SCU_INVALIDATE 0x0c
@@
-50,10
+51,10
@@
void scu_enable(void __iomem *scu_base)
scu_ctrl = readl_relaxed(scu_base + SCU_CTRL);
/* already enabled? */
- if (scu_ctrl &
1
)
+ if (scu_ctrl &
SCU_ENABLE
)
return;
- scu_ctrl |=
1
;
+ scu_ctrl |=
SCU_ENABLE
;
writel_relaxed(scu_ctrl, scu_base + SCU_CTRL);
/*