Lines Matching refs:panel
215 int am335xfb_init(struct am335x_lcdpanel *panel) in am335xfb_init() argument
226 if (panel == NULL) { in am335xfb_init()
232 switch (panel->bpp) { in am335xfb_init()
242 pr_err("am335x-fb: invalid bpp value: %d\n", panel->bpp); in am335xfb_init()
247 if (panel->pxl_clk > (LCDC_FMAX / 2)) { in am335xfb_init()
249 panel->pxl_clk); in am335xfb_init()
254 panel->hactive, panel->vactive, panel->bpp, in am335xfb_init()
255 panel->hfp, panel->hbp, panel->hsw); in am335xfb_init()
257 panel->vfp, panel->vfp, panel->vsw, panel->pxl_clk); in am335xfb_init()
259 (unsigned int)gd->fb_base, FBSIZE(panel)); in am335xfb_init()
261 rate = am335x_fb_set_pixel_clk_rate(lcdhw, panel->pxl_clk); in am335xfb_init()
275 if (panel->panel_power_ctrl != NULL) in am335xfb_init()
276 panel->panel_power_ctrl(1); in am335xfb_init()
279 mdelay(panel->pup_delay); in am335xfb_init()
289 lcdhw->lcddma_fb0_ceiling = gd->fb_base + FBSIZE(panel); in am335xfb_init()
291 lcdhw->lcddma_fb1_ceiling = gd->fb_base + FBSIZE(panel); in am335xfb_init()
294 lcdhw->raster_timing0 = LCDC_RASTER_TIMING_0_HORLSB(panel->hactive) | in am335xfb_init()
295 LCDC_RASTER_TIMING_0_HORMSB(panel->hactive) | in am335xfb_init()
296 LCDC_RASTER_TIMING_0_HFPLSB(panel->hfp) | in am335xfb_init()
297 LCDC_RASTER_TIMING_0_HBPLSB(panel->hbp) | in am335xfb_init()
298 LCDC_RASTER_TIMING_0_HSWLSB(panel->hsw); in am335xfb_init()
299 lcdhw->raster_timing1 = LCDC_RASTER_TIMING_1_VBP(panel->vbp) | in am335xfb_init()
300 LCDC_RASTER_TIMING_1_VFP(panel->vfp) | in am335xfb_init()
301 LCDC_RASTER_TIMING_1_VSW(panel->vsw) | in am335xfb_init()
302 LCDC_RASTER_TIMING_1_VERLSB(panel->vactive); in am335xfb_init()
303 lcdhw->raster_timing2 = LCDC_RASTER_TIMING_2_HSWMSB(panel->hsw) | in am335xfb_init()
304 LCDC_RASTER_TIMING_2_VERMSB(panel->vactive) | in am335xfb_init()
305 LCDC_RASTER_TIMING_2_INVMASK(panel->pol) | in am335xfb_init()
306 LCDC_RASTER_TIMING_2_HBPMSB(panel->hbp) | in am335xfb_init()
307 LCDC_RASTER_TIMING_2_HFPMSB(panel->hfp) | in am335xfb_init()
315 mdelay(panel->pon_delay); in am335xfb_init()