Lines Matching refs:mode
50 struct ctfb_res_modes *mode, int bpp) in mxs_lcd_init() argument
57 mxs_set_lcdclk(MXS_LCDIF_BASE, PS2KHZ(mode->pixclock)); in mxs_lcd_init()
94 writel((mode->yres << LCDIF_TRANSFER_COUNT_V_COUNT_OFFSET) | mode->xres, in mxs_lcd_init()
100 mode->vsync_len, ®s->hw_lcdif_vdctrl0); in mxs_lcd_init()
101 writel(mode->upper_margin + mode->lower_margin + in mxs_lcd_init()
102 mode->vsync_len + mode->yres, in mxs_lcd_init()
104 writel((mode->hsync_len << LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH_OFFSET) | in mxs_lcd_init()
105 (mode->left_margin + mode->right_margin + in mxs_lcd_init()
106 mode->hsync_len + mode->xres), in mxs_lcd_init()
108 writel(((mode->left_margin + mode->hsync_len) << in mxs_lcd_init()
110 (mode->upper_margin + mode->vsync_len), in mxs_lcd_init()
112 writel((0 << LCDIF_VDCTRL4_DOTCLK_DLY_SEL_OFFSET) | mode->xres, in mxs_lcd_init()
158 struct ctfb_res_modes mode; in video_hw_init() local
169 bpp = video_get_params(&mode, penv); in video_hw_init()
173 mode.xres, mode.yres, bpp); in video_hw_init()
175 panel.winSizeX = mode.xres; in video_hw_init()
176 panel.winSizeY = mode.yres; in video_hw_init()
177 panel.plnSizeX = mode.xres; in video_hw_init()
178 panel.plnSizeY = mode.yres; in video_hw_init()
199 panel.memSize = mode.xres * mode.yres * panel.gdfBytesPP; in video_hw_init()
217 mxs_lcd_init(&panel, &mode, bpp); in video_hw_init()