Lines Matching refs:timing
254 struct display_timing timing; member
294 struct display_timing *timing = &priv->timing; in atmel_hlcdc_init() local
325 value = priv->clk_rate / timing->pixelclock.typ; in atmel_hlcdc_init()
326 if (priv->clk_rate % timing->pixelclock.typ) in atmel_hlcdc_init()
330 if (timing->flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE) in atmel_hlcdc_init()
357 if (!(timing->flags & DISPLAY_FLAGS_HSYNC_HIGH)) in atmel_hlcdc_init()
359 if (!(timing->flags & DISPLAY_FLAGS_VSYNC_HIGH)) in atmel_hlcdc_init()
385 value = LCDC_LCDCFG1_VSPW(timing->vsync_len.typ - 1); in atmel_hlcdc_init()
386 value |= LCDC_LCDCFG1_HSPW(timing->hsync_len.typ - 1); in atmel_hlcdc_init()
389 value = LCDC_LCDCFG2_VBPW(timing->vback_porch.typ); in atmel_hlcdc_init()
390 value |= LCDC_LCDCFG2_VFPW(timing->vfront_porch.typ - 1); in atmel_hlcdc_init()
393 value = LCDC_LCDCFG3_HBPW(timing->hback_porch.typ - 1); in atmel_hlcdc_init()
394 value |= LCDC_LCDCFG3_HFPW(timing->hfront_porch.typ - 1); in atmel_hlcdc_init()
398 value = LCDC_LCDCFG4_RPF(timing->vactive.typ - 1); in atmel_hlcdc_init()
399 value |= LCDC_LCDCFG4_PPL(timing->hactive.typ - 1); in atmel_hlcdc_init()
489 uc_priv->xsize = priv->timing.hactive.typ; in atmel_hlcdc_probe()
490 uc_priv->ysize = priv->timing.vactive.typ; in atmel_hlcdc_probe()
512 0, &priv->timing)) { in atmel_hlcdc_ofdata_to_platdata()
517 if (priv->timing.hactive.typ > LCD_MAX_WIDTH) in atmel_hlcdc_ofdata_to_platdata()
518 priv->timing.hactive.typ = LCD_MAX_WIDTH; in atmel_hlcdc_ofdata_to_platdata()
520 if (priv->timing.vactive.typ > LCD_MAX_HEIGHT) in atmel_hlcdc_ofdata_to_platdata()
521 priv->timing.vactive.typ = LCD_MAX_HEIGHT; in atmel_hlcdc_ofdata_to_platdata()