summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorKumar Gala <kumar.gala@linaro.org>2017-01-25 09:42:32 -0600
committerKumar Gala <kumar.gala@linaro.org>2017-01-30 11:02:39 -0600
commit843e3568deac7f5eda46c296669b1687f7dad448 (patch)
tree680d7bb7a3bd00e9f70b955acb17b9cda8744353 /arch
parent772cbd195590af09659048a3878318e9bbb7d6e3 (diff)
arm: scb: Move SCB asm defines into cpu_idle.S
As cpu_idle.S is the only bit of code that is using the SCB asm defines, so to allow us to remove scb.h in the future lets move the defines that are used just into cpu_idle.S Jira: ZEP-1568 Change-Id: I3c3a6f145ec4c1a43f076d079d5fe1694c255b78 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/core/cpu_idle.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/core/cpu_idle.S b/arch/arm/core/cpu_idle.S
index 43a963834..b139539a6 100644
--- a/arch/arm/core/cpu_idle.S
+++ b/arch/arm/core/cpu_idle.S
@@ -28,6 +28,11 @@ GTEXT(_NanoIdleValClear)
GTEXT(k_cpu_idle)
GTEXT(k_cpu_atomic_idle)
+#define _SCB_SCR 0xE000ED10
+
+#define _SCB_SCR_SEVONPEND (1 << 4)
+#define _SCB_SCR_SLEEPDEEP (1 << 2)
+#define _SCB_SCR_SLEEPONEXIT (1 << 1)
#define _SCR_INIT_BITS _SCB_SCR_SEVONPEND
/**