hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/soc/rockchip/rockchip_dmc.h
....@@ -51,9 +51,11 @@
5151 struct freq_map_table *vop_frame_bw_tbl;
5252 struct rl_map_table *vop_pn_rl_tbl;
5353 struct delayed_work msch_rl_work;
54
+ unsigned long vop_4k_rate;
5455 unsigned long vop_req_rate;
5556 unsigned int read_latency;
5657 unsigned int auto_freq_en;
58
+ unsigned int stall_time_ns;
5759 bool is_msch_rl_work_started;
5860 int (*set_msch_readlatency)(unsigned int rl);
5961 };
....@@ -62,6 +64,7 @@
6264 unsigned int line_bw_mbyte;
6365 unsigned int frame_bw_mbyte;
6466 unsigned int plane_num;
67
+ unsigned int plane_num_4k;
6568 };
6669
6770 #if IS_REACHABLE(CONFIG_ARM_ROCKCHIP_DMC_DEVFREQ)
....@@ -74,6 +77,7 @@
7477 int rockchip_dmcfreq_vop_bandwidth_init(struct dmcfreq_common_info *info);
7578 int rockchip_dmcfreq_vop_bandwidth_request(struct dmcfreq_vop_info *vop_info);
7679 void rockchip_dmcfreq_vop_bandwidth_update(struct dmcfreq_vop_info *vop_info);
80
+unsigned int rockchip_dmcfreq_get_stall_time_ns(void);
7781 #else
7882 static inline void rockchip_dmcfreq_lock(void)
7983 {
....@@ -116,6 +120,12 @@
116120 rockchip_dmcfreq_vop_bandwidth_init(struct dmcfreq_common_info *info)
117121 {
118122 }
123
+
124
+static inline unsigned int
125
+rockchip_dmcfreq_get_stall_time_ns(void)
126
+{
127
+ return 0;
128
+}
119129 #endif
120130
121131 #endif