aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKumar Gala <galak@codeaurora.org>2015-02-04 17:10:13 -0500
committerKumar Gala <galak@codeaurora.org>2015-03-11 16:06:37 -0400
commitb97fdb6dc0effe0612bc60fc9db7017b9fd81932 (patch)
treeefdece8033ff46e74e853836b83ac7dc0f2431f8
parent3d9b448bd287f051f5380323d596a133f01c074b (diff)
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>
-rw-r--r--arch/arm/mach-qcom/scm.c7
-rw-r--r--arch/arm/mach-qcom/scm.h7
2 files changed, 4 insertions, 10 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)
249 * response buffers is taken care of by scm_call; however, callers are 249 * response buffers is taken care of by scm_call; however, callers are
250 * responsible for any other cached buffers passed over to the secure world. 250 * responsible for any other cached buffers passed over to the secure world.
251 */ 251 */
252int scm_call(u32 svc_id, u32 cmd_id, const void *cmd_buf, size_t cmd_len, 252static int scm_call(u32 svc_id, u32 cmd_id, const void *cmd_buf, size_t cmd_len,
253 void *resp_buf, size_t resp_len) 253 void *resp_buf, size_t resp_len)
254{ 254{
255 int ret; 255 int ret;
256 struct scm_command *cmd; 256 struct scm_command *cmd;
@@ -287,7 +287,6 @@ out:
287 free_scm_command(cmd); 287 free_scm_command(cmd);
288 return ret; 288 return ret;
289} 289}
290EXPORT_SYMBOL(scm_call);
291 290
292u32 scm_get_version(void) 291u32 scm_get_version(void)
293{ 292{
@@ -325,6 +324,8 @@ u32 scm_get_version(void)
325} 324}
326EXPORT_SYMBOL(scm_get_version); 325EXPORT_SYMBOL(scm_get_version);
327 326
327#define SCM_SVC_BOOT 0x1
328#define SCM_BOOT_ADDR 0x1
328/* 329/*
329 * Set the cold/warm boot address for one of the CPU cores. 330 * Set the cold/warm boot address for one of the CPU cores.
330 */ 331 */
diff --git a/arch/arm/mach-qcom/scm.h b/arch/arm/mach-qcom/scm.h
index cfe693575d51..d73c3786c881 100644
--- a/arch/arm/mach-qcom/scm.h
+++ b/arch/arm/mach-qcom/scm.h
@@ -12,13 +12,6 @@
12#ifndef __MACH_SCM_H 12#ifndef __MACH_SCM_H
13#define __MACH_SCM_H 13#define __MACH_SCM_H
14 14
15#define SCM_SVC_BOOT 0x1
16#define SCM_SVC_PIL 0x2
17
18extern int scm_call(u32 svc_id, u32 cmd_id, const void *cmd_buf, size_t cmd_len,
19 void *resp_buf, size_t resp_len);
20
21#define SCM_BOOT_ADDR 0x1
22#define SCM_FLAG_COLDBOOT_CPU1 0x01 15#define SCM_FLAG_COLDBOOT_CPU1 0x01
23#define SCM_FLAG_COLDBOOT_CPU2 0x08 16#define SCM_FLAG_COLDBOOT_CPU2 0x08
24#define SCM_FLAG_COLDBOOT_CPU3 0x20 17#define SCM_FLAG_COLDBOOT_CPU3 0x20