diff options
author | Tony Xie <tony.xie@rock-chips.com> | 2018-04-07 16:01:46 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-04-26 16:44:24 +0800 |
commit | 5c1ca8c14c865913247164d225ce9792298caf25 (patch) | |
tree | 50b763ac44364eb1c70a97337ef71732d491757f /include | |
parent | 46cb48d1dca64daca199f964d517cb22bb550549 (diff) |
PM / devfreq: rockchip_dmc: support wait_complete.
Change-Id: Ie3f173f632068f261b84a204bbd36b26b10e1981
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/rockchip/rockchip_sip.h | 1 | ||||
-rw-r--r-- | include/soc/rockchip/rockchip_dmc.h | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/rockchip/rockchip_sip.h b/include/linux/rockchip/rockchip_sip.h index e4342a894854..6b6799c7dfb5 100644 --- a/include/linux/rockchip/rockchip_sip.h +++ b/include/linux/rockchip/rockchip_sip.h @@ -57,6 +57,7 @@ #define SIP_RET_INVALID_PARAMS -3 #define SIP_RET_INVALID_ADDRESS -4 #define SIP_RET_DENIED -5 +#define SIP_RET_SET_RATE_TIMEOUT -6 /* SIP_UARTDBG_CFG64 call types */ #define UARTDBG_CFG_INIT 0xf0 diff --git a/include/soc/rockchip/rockchip_dmc.h b/include/soc/rockchip/rockchip_dmc.h index 453292f3c85a..37d381cf788f 100644 --- a/include/soc/rockchip/rockchip_dmc.h +++ b/include/soc/rockchip/rockchip_dmc.h @@ -33,4 +33,13 @@ static inline int rockchip_drm_register_notifier_to_dmc(struct devfreq *devfreq) } #endif +#ifdef CONFIG_ARM_ROCKCHIP_DMC_DEVFREQ +int rockchip_dmcfreq_wait_complete(void); +#else +static inline int rockchip_dmcfreq_wait_complete(void) +{ + return 0; +} +#endif + #endif |