Lines Matching refs:sig_cfg
268 struct ipu_di_signal_cfg sig_cfg = {}; in ipu_crtc_mode_set_nofb() local
291 sig_cfg.clkflags = IPU_DI_CLKMODE_SYNC | IPU_DI_CLKMODE_EXT; in ipu_crtc_mode_set_nofb()
293 sig_cfg.clkflags = IPU_DI_CLKMODE_EXT; in ipu_crtc_mode_set_nofb()
295 sig_cfg.clkflags = 0; in ipu_crtc_mode_set_nofb()
297 sig_cfg.enable_pol = !(imx_crtc_state->bus_flags & DRM_BUS_FLAG_DE_LOW); in ipu_crtc_mode_set_nofb()
299 sig_cfg.clk_pol = !!(imx_crtc_state->bus_flags & in ipu_crtc_mode_set_nofb()
301 sig_cfg.bus_format = imx_crtc_state->bus_format; in ipu_crtc_mode_set_nofb()
302 sig_cfg.v_to_h_sync = 0; in ipu_crtc_mode_set_nofb()
303 sig_cfg.hsync_pin = imx_crtc_state->di_hsync_pin; in ipu_crtc_mode_set_nofb()
304 sig_cfg.vsync_pin = imx_crtc_state->di_vsync_pin; in ipu_crtc_mode_set_nofb()
306 drm_display_mode_to_videomode(mode, &sig_cfg.mode); in ipu_crtc_mode_set_nofb()
307 if (!IS_ALIGNED(sig_cfg.mode.hactive, 8)) { in ipu_crtc_mode_set_nofb()
308 unsigned int new_hactive = ALIGN(sig_cfg.mode.hactive, 8); in ipu_crtc_mode_set_nofb()
311 sig_cfg.mode.hactive, new_hactive); in ipu_crtc_mode_set_nofb()
313 sig_cfg.mode.hfront_porch -= new_hactive - sig_cfg.mode.hactive; in ipu_crtc_mode_set_nofb()
314 sig_cfg.mode.hactive = new_hactive; in ipu_crtc_mode_set_nofb()
319 imx_crtc_state->bus_format, sig_cfg.mode.hactive); in ipu_crtc_mode_set_nofb()
320 ipu_di_init_sync_panel(ipu_crtc->di, &sig_cfg); in ipu_crtc_mode_set_nofb()