| .. | .. |
|---|
| 283 | 283 | } |
|---|
| 284 | 284 | EXPORT_SYMBOL_GPL(sip_smc_get_amp_info); |
|---|
| 285 | 285 | |
|---|
| 286 | +struct arm_smccc_res sip_smc_get_pvtpll_info(u32 sub_func_id, u32 arg1) |
|---|
| 287 | +{ |
|---|
| 288 | + struct arm_smccc_res res; |
|---|
| 289 | + |
|---|
| 290 | + /* |
|---|
| 291 | + * res.a0: error code(0: success, !0: error). |
|---|
| 292 | + * res.a1: low temp config flag(0: support, !0: don't support). |
|---|
| 293 | + */ |
|---|
| 294 | + arm_smccc_smc(SIP_PVTPLL_CFG, sub_func_id, arg1, 0, 0, 0, 0, 0, &res); |
|---|
| 295 | + return res; |
|---|
| 296 | +} |
|---|
| 297 | +EXPORT_SYMBOL_GPL(sip_smc_get_pvtpll_info); |
|---|
| 298 | + |
|---|
| 299 | +struct arm_smccc_res sip_smc_pvtpll_config(u32 sub_func_id, u32 arg1, u32 arg2, |
|---|
| 300 | + u32 arg3, u32 arg4, u32 arg5, u32 arg6) |
|---|
| 301 | +{ |
|---|
| 302 | + struct arm_smccc_res res; |
|---|
| 303 | + |
|---|
| 304 | + /* |
|---|
| 305 | + * res.a0: error code(0: success, !0: error). |
|---|
| 306 | + */ |
|---|
| 307 | + arm_smccc_smc(SIP_PVTPLL_CFG, sub_func_id, arg1, arg2, arg3, arg4, arg5, |
|---|
| 308 | + arg6, &res); |
|---|
| 309 | + return res; |
|---|
| 310 | +} |
|---|
| 311 | +EXPORT_SYMBOL_GPL(sip_smc_pvtpll_config); |
|---|
| 312 | + |
|---|
| 286 | 313 | void __iomem *sip_hdcp_request_share_memory(int id) |
|---|
| 287 | 314 | { |
|---|
| 288 | 315 | static void __iomem *base; |
|---|
| .. | .. |
|---|
| 627 | 654 | } |
|---|
| 628 | 655 | EXPORT_SYMBOL_GPL(sip_hdcpkey_init); |
|---|
| 629 | 656 | |
|---|
| 657 | +int sip_smc_mcu_config(unsigned long mcu_id, |
|---|
| 658 | + unsigned long func, |
|---|
| 659 | + unsigned long arg2) |
|---|
| 660 | +{ |
|---|
| 661 | + struct arm_smccc_res res; |
|---|
| 662 | + |
|---|
| 663 | + res = __invoke_sip_fn_smc(SIP_MCU_CFG, mcu_id, func, arg2); |
|---|
| 664 | + return res.a0; |
|---|
| 665 | +} |
|---|
| 666 | +EXPORT_SYMBOL_GPL(sip_smc_mcu_config); |
|---|
| 630 | 667 | /******************************************************************************/ |
|---|
| 631 | 668 | #ifdef CONFIG_ARM |
|---|
| 632 | 669 | static __init int sip_firmware_init(void) |
|---|