firmware: rockchip_sip: add sip_smc_vpu_reset
Change-Id: Ib3e1a8b957bc164b8c4cca821d8ea89ee2e1ac9d Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
This commit is contained in:
committed by
Tao Huang
parent
545abf2ec4
commit
e9fbb2f883
@@ -127,6 +127,14 @@ struct arm_smccc_res sip_smc_mcu_el3fiq(u32 arg0, u32 arg1, u32 arg2)
|
||||
return __invoke_sip_fn_smc(SIP_MCU_EL3FIQ_CFG, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
struct arm_smccc_res sip_smc_vpu_reset(u32 arg0, u32 arg1, u32 arg2)
|
||||
{
|
||||
struct arm_smccc_res res;
|
||||
|
||||
res = __invoke_sip_fn_smc(PSCI_SIP_VPU_RESET, arg0, arg1, arg2);
|
||||
return res;
|
||||
}
|
||||
|
||||
/************************** fiq debugger **************************************/
|
||||
#ifdef CONFIG_ARM64
|
||||
#define SIP_UARTDBG_FN SIP_UARTDBG_CFG64
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#define SIP_SHARE_MEM 0x82000009
|
||||
#define SIP_SIP_VERSION 0x8200000a
|
||||
#define SIP_REMOTECTL_CFG 0x8200000b
|
||||
#define PSCI_SIP_VPU_RESET 0x8200000c
|
||||
|
||||
/* Rockchip Sip version */
|
||||
#define SIP_IMPLEMENT_V1 (1)
|
||||
@@ -106,6 +107,7 @@ struct arm_smccc_res sip_smc_dram(u32 arg0, u32 arg1, u32 arg2);
|
||||
struct arm_smccc_res sip_smc_request_share_mem(u32 page_num,
|
||||
share_page_type_t page_type);
|
||||
struct arm_smccc_res sip_smc_mcu_el3fiq(u32 arg0, u32 arg1, u32 arg2);
|
||||
struct arm_smccc_res sip_smc_vpu_reset(u32 arg0, u32 arg1, u32 arg2);
|
||||
|
||||
int sip_smc_set_suspend_mode(u32 ctrl, u32 config1, u32 config2);
|
||||
int sip_smc_virtual_poweroff(void);
|
||||
@@ -156,6 +158,13 @@ static inline struct arm_smccc_res sip_smc_mcu_el3fiq
|
||||
return tmp;
|
||||
}
|
||||
|
||||
static inline struct arm_smccc_res
|
||||
sip_smc_vpu_reset(u32 arg0, u32 arg1, u32 arg2)
|
||||
{
|
||||
struct arm_smccc_res tmp = {0};
|
||||
return tmp;
|
||||
}
|
||||
|
||||
static inline int sip_smc_set_suspend_mode(u32 ctrl, u32 config1, u32 config2)
|
||||
{
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user