summaryrefslogtreecommitdiff
path: root/arch/arm/mach-qcom/scm.h
diff options
context:
space:
mode:
authorKumar Gala <galak@codeaurora.org>2015-02-04 21:46:04 (GMT)
committerKumar Gala <galak@codeaurora.org>2015-03-11 20:06:36 (GMT)
commit3d9b448bd287f051f5380323d596a133f01c074b (patch)
tree4036207733a835efd0129771b8f4f6cfe6f7d868 /arch/arm/mach-qcom/scm.h
parentc517d838eb7d07bbe9507871fab3931deccff539 (diff)
downloadlinux-3d9b448bd287f051f5380323d596a133f01c074b.tar.xz
ARM: qcom: Merge scm and scm boot code together
Put all scm related code into a single file as a first step in cleaning up the scm interface to just expose functional behavior insteam of making direct scm calls. Signed-off-by: Kumar Gala <galak@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-qcom/scm.h')
-rw-r--r--arch/arm/mach-qcom/scm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-qcom/scm.h b/arch/arm/mach-qcom/scm.h
index 00b31ea..cfe6935 100644
--- a/arch/arm/mach-qcom/scm.h
+++ b/arch/arm/mach-qcom/scm.h
@@ -18,6 +18,17 @@
extern int scm_call(u32 svc_id, u32 cmd_id, const void *cmd_buf, size_t cmd_len,
void *resp_buf, size_t resp_len);
+#define SCM_BOOT_ADDR 0x1
+#define SCM_FLAG_COLDBOOT_CPU1 0x01
+#define SCM_FLAG_COLDBOOT_CPU2 0x08
+#define SCM_FLAG_COLDBOOT_CPU3 0x20
+#define SCM_FLAG_WARMBOOT_CPU0 0x04
+#define SCM_FLAG_WARMBOOT_CPU1 0x02
+#define SCM_FLAG_WARMBOOT_CPU2 0x10
+#define SCM_FLAG_WARMBOOT_CPU3 0x40
+
+extern int scm_set_boot_addr(u32 addr, int flags);
+
#define SCM_VERSION(major, minor) (((major) << 16) | ((minor) & 0xFF))
extern u32 scm_get_version(void);