mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
UPSTREAM: scsi: soc: mediatek: add header for SiP service interface
Add a common header for the SiP service interface in MediaTek Chipsets. Bug: 149040610 Change-Id: I7ade932d01e6b7c18f9791409781fd49af66c124 (cherry picked from commit fef093ff7e9654eec77e79b8170485241f01d027) Cc: Alim Akhtar <alim.akhtar@samsung.com> Cc: Avri Altman <avri.altman@wdc.com> Cc: Bart Van Assche <bvanassche@acm.org> Cc: Bean Huo <beanhuo@micron.com> Cc: Can Guo <cang@codeaurora.org> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: Matthias Brugger <matthias.bgg@gmail.com> Link: https://lore.kernel.org/r/1577683950-1702-2-git-send-email-stanley.chu@mediatek.com Signed-off-by: Stanley Chu <stanley.chu@mediatek.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
548d799b72
commit
6205a8dc2c
1 changed files with 25 additions and 0 deletions
25
include/linux/soc/mediatek/mtk_sip_svc.h
Normal file
25
include/linux/soc/mediatek/mtk_sip_svc.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (C) 2019 MediaTek Inc.
|
||||
*/
|
||||
#ifndef __MTK_SIP_SVC_H
|
||||
#define __MTK_SIP_SVC_H
|
||||
|
||||
/* Error Code */
|
||||
#define SIP_SVC_E_SUCCESS 0
|
||||
#define SIP_SVC_E_NOT_SUPPORTED -1
|
||||
#define SIP_SVC_E_INVALID_PARAMS -2
|
||||
#define SIP_SVC_E_INVALID_RANGE -3
|
||||
#define SIP_SVC_E_PERMISSION_DENIED -4
|
||||
|
||||
#ifdef CONFIG_ARM64
|
||||
#define MTK_SIP_SMC_CONVENTION ARM_SMCCC_SMC_64
|
||||
#else
|
||||
#define MTK_SIP_SMC_CONVENTION ARM_SMCCC_SMC_32
|
||||
#endif
|
||||
|
||||
#define MTK_SIP_SMC_CMD(fn_id) \
|
||||
ARM_SMCCC_CALL_VAL(ARM_SMCCC_FAST_CALL, MTK_SIP_SMC_CONVENTION, \
|
||||
ARM_SMCCC_OWNER_SIP, fn_id)
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue