soc: rockchip: power-domain: add pm_domains.h

Change-Id: I889a7da10605e70af635e8b7fac26bf26fe6506f
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2018-05-07 19:13:44 +08:00
parent 8f26c30ca3
commit a3a5aa0cf6
2 changed files with 43 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
#include <linux/clk.h>
#include <linux/regmap.h>
#include <linux/mfd/syscon.h>
#include <soc/rockchip/pm_domains.h>
#include <dt-bindings/power/px30-power.h>
#include <dt-bindings/power/rk3036-power.h>
#include <dt-bindings/power/rk3128-power.h>

View File

@@ -0,0 +1,42 @@
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __SOC_ROCKCHIP_PM_DOMAINS_H
#define __SOC_ROCKCHIP_PM_DOMAINS_H
#include <linux/errno.h>
struct devfreq;
struct device;
#ifdef CONFIG_ROCKCHIP_PM_DOMAINS
int rockchip_pmu_idle_request(struct device *dev, bool idle);
int rockchip_save_qos(struct device *dev);
int rockchip_restore_qos(struct device *dev);
int rockchip_pm_register_notify_to_dmc(struct devfreq *devfreq);
void rockchip_dump_pmu(void);
#else
static inline int rockchip_pmu_idle_request(struct device *dev, bool idle)
{
return -ENOTSUPP;
}
static inline int rockchip_save_qos(struct device *dev)
{
return -ENOTSUPP;
}
static inline int rockchip_restore_qos(struct device *dev)
{
return -ENOTSUPP;
}
static inline int rockchip_pm_register_notify_to_dmc(struct devfreq *devfreq)
{
return -ENOTSUPP;
}
static inline void rockchip_dump_pmu(void)
{
}
#endif
#endif