File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments