diff options
author | Kumar Gala <galak@codeaurora.org> | 2015-02-04 15:46:04 -0600 |
---|---|---|
committer | Kumar Gala <galak@codeaurora.org> | 2015-03-11 15:06:36 -0500 |
commit | 3d9b448bd287f051f5380323d596a133f01c074b (patch) | |
tree | 4036207733a835efd0129771b8f4f6cfe6f7d868 /arch/arm/mach-qcom/scm.h | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) | |
download | lwn-3d9b448bd287f051f5380323d596a133f01c074b.tar.gz lwn-3d9b448bd287f051f5380323d596a133f01c074b.zip |
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.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-qcom/scm.h b/arch/arm/mach-qcom/scm.h index 00b31ea58f29..cfe693575d51 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); |