.. | .. |
---|
81 | 81 | ISP_START = BIT(9), |
---|
82 | 82 | ISP_ERROR = BIT(10), |
---|
83 | 83 | ISP_MIPI_ERROR = BIT(11), |
---|
| 84 | + ISP_CIF_RESET = BIT(12), |
---|
84 | 85 | }; |
---|
85 | 86 | |
---|
86 | 87 | enum rkisp_isp_inp { |
---|
.. | .. |
---|
235 | 236 | size_t resmem_size; |
---|
236 | 237 | struct rkisp_thunderboot_resmem_head tb_head; |
---|
237 | 238 | bool is_thunderboot; |
---|
| 239 | + /* first frame for rtt */ |
---|
| 240 | + bool is_rtt_first; |
---|
| 241 | + /* suspend/resume with rtt */ |
---|
| 242 | + bool is_rtt_suspend; |
---|
238 | 243 | struct rkisp_tb_stream_info tb_stream_info; |
---|
239 | 244 | unsigned int tb_addr_idx; |
---|
240 | 245 | |
---|
.. | .. |
---|
245 | 250 | bool send_fbcgain; |
---|
246 | 251 | struct rkisp_ispp_buf *cur_fbcgain; |
---|
247 | 252 | struct rkisp_buffer *cur_spbuf; |
---|
| 253 | + |
---|
| 254 | + struct completion pm_cmpl; |
---|
248 | 255 | |
---|
249 | 256 | struct work_struct rdbk_work; |
---|
250 | 257 | struct kfifo rdbk_kfifo; |
---|
.. | .. |
---|
269 | 276 | bool is_first_double; |
---|
270 | 277 | bool is_probe_end; |
---|
271 | 278 | bool is_frame_double; |
---|
| 279 | + bool is_suspend; |
---|
| 280 | + bool suspend_sync; |
---|
| 281 | + bool is_suspend_one_frame; |
---|
272 | 282 | |
---|
273 | 283 | struct rkisp_vicap_input vicap_in; |
---|
274 | 284 | |
---|
.. | .. |
---|
304 | 314 | rkisp_next_clear_bits(dev, reg, mask, is_direct); |
---|
305 | 315 | } |
---|
306 | 316 | |
---|
| 317 | +static inline bool rkisp_link_sensor(u32 isp_inp) |
---|
| 318 | +{ |
---|
| 319 | + return isp_inp & (INP_CSI | INP_DVP | INP_LVDS); |
---|
| 320 | +} |
---|
307 | 321 | #endif |
---|