hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/platform/rockchip/isp/dev.h
....@@ -81,6 +81,7 @@
8181 ISP_START = BIT(9),
8282 ISP_ERROR = BIT(10),
8383 ISP_MIPI_ERROR = BIT(11),
84
+ ISP_CIF_RESET = BIT(12),
8485 };
8586
8687 enum rkisp_isp_inp {
....@@ -235,6 +236,10 @@
235236 size_t resmem_size;
236237 struct rkisp_thunderboot_resmem_head tb_head;
237238 bool is_thunderboot;
239
+ /* first frame for rtt */
240
+ bool is_rtt_first;
241
+ /* suspend/resume with rtt */
242
+ bool is_rtt_suspend;
238243 struct rkisp_tb_stream_info tb_stream_info;
239244 unsigned int tb_addr_idx;
240245
....@@ -245,6 +250,8 @@
245250 bool send_fbcgain;
246251 struct rkisp_ispp_buf *cur_fbcgain;
247252 struct rkisp_buffer *cur_spbuf;
253
+
254
+ struct completion pm_cmpl;
248255
249256 struct work_struct rdbk_work;
250257 struct kfifo rdbk_kfifo;
....@@ -269,6 +276,9 @@
269276 bool is_first_double;
270277 bool is_probe_end;
271278 bool is_frame_double;
279
+ bool is_suspend;
280
+ bool suspend_sync;
281
+ bool is_suspend_one_frame;
272282
273283 struct rkisp_vicap_input vicap_in;
274284
....@@ -304,4 +314,8 @@
304314 rkisp_next_clear_bits(dev, reg, mask, is_direct);
305315 }
306316
317
+static inline bool rkisp_link_sensor(u32 isp_inp)
318
+{
319
+ return isp_inp & (INP_CSI | INP_DVP | INP_LVDS);
320
+}
307321 #endif