hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/soc/rockchip/pm_domains.h
....@@ -15,6 +15,21 @@
1515 int rockchip_restore_qos(struct device *dev);
1616 void rockchip_dump_pmu(void);
1717 #else
18
+static inline int rockchip_pmu_pd_on(struct device *dev)
19
+{
20
+ return -ENOTSUPP;
21
+}
22
+
23
+static inline int rockchip_pmu_pd_off(struct device *dev)
24
+{
25
+ return -ENOTSUPP;
26
+}
27
+
28
+static inline bool rockchip_pmu_pd_is_on(struct device *dev)
29
+{
30
+ return true;
31
+}
32
+
1833 static inline int rockchip_pmu_idle_request(struct device *dev, bool idle)
1934 {
2035 return -ENOTSUPP;
....@@ -35,4 +50,12 @@
3550 }
3651 #endif
3752
53
+#if IS_MODULE(CONFIG_ROCKCHIP_PM_DOMAINS)
54
+void rockchip_pd_disable_unused(void);
55
+#else
56
+static inline void rockchip_pd_disable_unused(void)
57
+{
58
+}
59
+#endif
60
+
3861 #endif