mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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>
|
||||
|
||||
42
include/soc/rockchip/pm_domains.h
Normal file
42
include/soc/rockchip/pm_domains.h
Normal 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
|
||||
Reference in New Issue
Block a user