firmware: rockchip_sip: export some interfaces for hdmirx module

Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I313e5532edad7887aeb3db91ceea4929249570c1
This commit is contained in:
Dingxian Wen
2022-12-09 16:37:01 +08:00
committed by Tao Huang
parent 06cdcb8afa
commit b1c4d89ee3
2 changed files with 10 additions and 0 deletions

View File

@@ -303,6 +303,7 @@ void __iomem *sip_hdcp_request_share_memory(int id)
return base + id * 1024;
}
EXPORT_SYMBOL_GPL(sip_hdcp_request_share_memory);
struct arm_smccc_res sip_hdcp_config(u32 arg0, u32 arg1, u32 arg2)
{
@@ -311,6 +312,7 @@ struct arm_smccc_res sip_hdcp_config(u32 arg0, u32 arg1, u32 arg2)
res = __invoke_sip_fn_smc(SIP_HDCP_CONFIG, arg0, arg1, arg2);
return res;
}
EXPORT_SYMBOL_GPL(sip_hdcp_config);
/************************** fiq debugger **************************************/
/*
@@ -487,6 +489,12 @@ static ulong cpu_logical_map_mpidr(u32 cpu)
#endif
}
ulong sip_cpu_logical_map_mpidr(u32 cpu)
{
return cpu_logical_map_mpidr(cpu);
}
EXPORT_SYMBOL_GPL(sip_cpu_logical_map_mpidr);
int sip_fiq_debugger_switch_cpu(u32 cpu)
{
struct arm_smccc_res res;

View File

@@ -223,6 +223,7 @@ struct arm_smccc_res sip_smc_get_amp_info(u32 sub_func_id, u32 arg1);
void __iomem *sip_hdcp_request_share_memory(int id);
struct arm_smccc_res sip_hdcp_config(u32 arg0, u32 arg1, u32 arg2);
ulong sip_cpu_logical_map_mpidr(u32 cpu);
/***************************fiq debugger **************************************/
void sip_fiq_debugger_enable_fiq(bool enable, uint32_t tgt_cpu);
void sip_fiq_debugger_enable_debug(bool enable);
@@ -334,6 +335,7 @@ static inline struct arm_smccc_res sip_smc_get_amp_info(u32 sub_func_id,
return tmp;
}
static inline ulong sip_cpu_logical_map_mpidr(u32 cpu) { return 0; }
/***************************fiq debugger **************************************/
static inline void sip_fiq_debugger_enable_fiq
(bool enable, uint32_t tgt_cpu) { return; }