diff options
author | Joseph Chen <chenjh@rock-chips.com> | 2018-05-08 15:13:56 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-05-09 18:27:42 +0800 |
commit | 1024a168392ce8cee8d76c65c3d3de00217104f1 (patch) | |
tree | ba23975886e225565f51289ea81ebae99d5d012e /drivers/firmware | |
parent | 2903fe52c7fc22c3a9bd84cc0cf458a6e35dc3ac (diff) |
firmware: rockchip: add sip_smc_get_suspend_info()
Change-Id: I976984c571ee7938d74129e99560c4c1505a7299
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/rockchip_sip.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/firmware/rockchip_sip.c b/drivers/firmware/rockchip_sip.c index f7c716232fb9..a4e0e93a0b2d 100644 --- a/drivers/firmware/rockchip_sip.c +++ b/drivers/firmware/rockchip_sip.c @@ -64,6 +64,14 @@ int sip_smc_set_suspend_mode(u32 ctrl, u32 config1, u32 config2) return res.a0; } +struct arm_smccc_res sip_smc_get_suspend_info(u32 info) +{ + struct arm_smccc_res res; + + res = __invoke_sip_fn_smc(SIP_SUSPEND_MODE, info, 0, 0); + return res; +} + int sip_smc_virtual_poweroff(void) { struct arm_smccc_res res; |