Skip to content

Commit

Permalink
firmware: rockchip_sip: export some interfaces for hdmirx module
Browse files Browse the repository at this point in the history
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I313e5532edad7887aeb3db91ceea4929249570c1
  • Loading branch information
Dingxian Wen authored and rkhuangtao committed Dec 12, 2022
1 parent 06cdcb8 commit b1c4d89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/firmware/rockchip_sip.c
Expand Up @@ -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)
{
Expand All @@ -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 **************************************/
/*
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions include/linux/rockchip/rockchip_sip.h
Expand Up @@ -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);
Expand Down Expand Up @@ -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; }
Expand Down

0 comments on commit b1c4d89

Please sign in to comment.