Skip to content

Commit a3a5aa0

Browse files
committed
soc: rockchip: power-domain: add pm_domains.h
Change-Id: I889a7da10605e70af635e8b7fac26bf26fe6506f Signed-off-by: Tao Huang <huangtao@rock-chips.com>
1 parent 8f26c30 commit a3a5aa0

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

drivers/soc/rockchip/pm_domains.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <linux/clk.h>
2020
#include <linux/regmap.h>
2121
#include <linux/mfd/syscon.h>
22+
#include <soc/rockchip/pm_domains.h>
2223
#include <dt-bindings/power/px30-power.h>
2324
#include <dt-bindings/power/rk3036-power.h>
2425
#include <dt-bindings/power/rk3128-power.h>

include/soc/rockchip/pm_domains.h

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
2+
#ifndef __SOC_ROCKCHIP_PM_DOMAINS_H
3+
#define __SOC_ROCKCHIP_PM_DOMAINS_H
4+
5+
#include <linux/errno.h>
6+
7+
struct devfreq;
8+
struct device;
9+
10+
#ifdef CONFIG_ROCKCHIP_PM_DOMAINS
11+
int rockchip_pmu_idle_request(struct device *dev, bool idle);
12+
int rockchip_save_qos(struct device *dev);
13+
int rockchip_restore_qos(struct device *dev);
14+
int rockchip_pm_register_notify_to_dmc(struct devfreq *devfreq);
15+
void rockchip_dump_pmu(void);
16+
#else
17+
static inline int rockchip_pmu_idle_request(struct device *dev, bool idle)
18+
{
19+
return -ENOTSUPP;
20+
}
21+
22+
static inline int rockchip_save_qos(struct device *dev)
23+
{
24+
return -ENOTSUPP;
25+
}
26+
27+
static inline int rockchip_restore_qos(struct device *dev)
28+
{
29+
return -ENOTSUPP;
30+
}
31+
32+
static inline int rockchip_pm_register_notify_to_dmc(struct devfreq *devfreq)
33+
{
34+
return -ENOTSUPP;
35+
}
36+
37+
static inline void rockchip_dump_pmu(void)
38+
{
39+
}
40+
#endif
41+
42+
#endif

0 commit comments

Comments
 (0)