int board_video_skip(void)
{
	int ret = ipuv3_fb_init(&videomode, 0, IPU_PIX_FMT_LVDS666);
	if (!ret) {
		enable_lvds();
		printf("Display: %s (%ux%u)\n",
		       videomode.name,
		       videomode.xres,
		       videomode.yres);
	} else
		printf("LCD %s cannot be configured: %d\n",
		       videomode.name, ret);
	return (0 != ret);
}
Example #2
0
void do_enable_lvds(struct lcd_panel_info_t const *dev)
{
	enable_lcdif_clock(dev->lcdif_base_addr);
	enable_lvds(dev->lcdif_base_addr);

	imx_iomux_v3_setup_multiple_pads(lvds_ctrl_pads,
							ARRAY_SIZE(lvds_ctrl_pads));

#ifdef CONFIG_MAX7310_IOEXP
	/* LVDS Enable pin */
	gpio_exp_direction_output(LVDS_EN_PIN , 1);
#endif

	/* Set Brightness to high */
	gpio_direction_output(IMX_GPIO_NR(6, 3) , 1);
}