Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee1a0fe1 authored by Keith Fallows's avatar Keith Fallows
Browse files

Update platform file to support 8916 LA 2.0



Change-Id: I25c14e3eed05439fc8f85f4e71261a197898d8bc
Signed-off-by: default avatarSylvain Trosset <trosset.sylvain@gmail.com>
[keithf@codeaurora.org: platform.h Enable scm_call2() for all
targets]
Signed-off-by: default avatarKeith Fallows <keithf@codeaurora.org>
Acked-by: default avatarTony Hamilton <tonyh@qti.qualcomm.com>
parent 89b03cfb
Loading
Loading
Loading
Loading
+20 −16
Original line number Diff line number Diff line
@@ -36,8 +36,6 @@
#define SCM_SVC_MOBICORE		250
#define SCM_CMD_MOBICORE		1

#ifdef CONFIG_ARM64

#include <soc/qcom/qseecomi.h>
#include <linux/slab.h>
#include <linux/io.h>
@@ -52,14 +50,18 @@
		TZ_SYSCALL_PARAM_TYPE_BUF_RW, TZ_SYSCALL_PARAM_TYPE_VAL, \
		TZ_SYSCALL_PARAM_TYPE_BUF_RW, TZ_SYSCALL_PARAM_TYPE_VAL)

#endif
/* from following file */
#define SCM_SVC_MOBICORE		250
#define SCM_CMD_MOBICORE		1


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);

static inline int smc_fastcall(void *fc_generic, size_t size)
{
#ifdef CONFIG_ARM64
    if (is_scm_armv8())
    {
	struct scm_desc desc = {0};
	int ret;
	void* scm_buf = NULL;
@@ -82,11 +84,13 @@ static inline int smc_fastcall(void *fc_generic, size_t size)
	memcpy(fc_generic, scm_buf, size);
	kfree(scm_buf);
	return ret;
#else
    }
    else
    {
	return scm_call(SCM_SVC_MOBICORE, SCM_CMD_MOBICORE,
			fc_generic, size,
			fc_generic, size);
#endif
    }
}

/* Enable mobicore mem traces */