summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-qcom/scm.c
diff options
context:
space:
mode:
authorKumar Gala <galak@codeaurora.org>2015-02-04 16:10:13 -0600
committerKumar Gala <galak@codeaurora.org>2015-03-11 15:06:37 -0500
commitb97fdb6dc0effe0612bc60fc9db7017b9fd81932 (patch)
treeefdece8033ff46e74e853836b83ac7dc0f2431f8 /arch/arm/mach-qcom/scm.c
parent3d9b448bd287f051f5380323d596a133f01c074b (diff)
downloadblackbird-op-linux-b97fdb6dc0effe0612bc60fc9db7017b9fd81932.tar.gz
blackbird-op-linux-b97fdb6dc0effe0612bc60fc9db7017b9fd81932.zip
ARM: qcom: Cleanup scm interface to only export what is needed
Now that scom boot interface is merged we don't need export scm_call anymore. Some other minor cleanups related to boot interface to only export what is needed by scm_set_boot_addr(). Signed-off-by: Kumar Gala <galak@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-qcom/scm.c')
-rw-r--r--arch/arm/mach-qcom/scm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-qcom/scm.c b/arch/arm/mach-qcom/scm.c
index e20db10e96f4..5147666be096 100644
--- a/arch/arm/mach-qcom/scm.c
+++ b/arch/arm/mach-qcom/scm.c
@@ -249,8 +249,8 @@ static void scm_inv_range(unsigned long start, unsigned long end)
* response buffers is taken care of by scm_call; however, callers are
* responsible for any other cached buffers passed over to the secure world.
*/
-int scm_call(u32 svc_id, u32 cmd_id, const void *cmd_buf, size_t cmd_len,
- void *resp_buf, size_t resp_len)
+static int scm_call(u32 svc_id, u32 cmd_id, const void *cmd_buf, size_t cmd_len,
+ void *resp_buf, size_t resp_len)
{
int ret;
struct scm_command *cmd;
@@ -287,7 +287,6 @@ out:
free_scm_command(cmd);
return ret;
}
-EXPORT_SYMBOL(scm_call);
u32 scm_get_version(void)
{
@@ -325,6 +324,8 @@ u32 scm_get_version(void)
}
EXPORT_SYMBOL(scm_get_version);
+#define SCM_SVC_BOOT 0x1
+#define SCM_BOOT_ADDR 0x1
/*
* Set the cold/warm boot address for one of the CPU cores.
*/
OpenPOWER on IntegriCloud