1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2015 Beckhoff Automation GmbH & Co. KG
4 * Patrick Bruenn <p.bruenn@beckhoff.com>
6 * Based on <u-boot>/board/freescale/mx53loco/mx53loco_video.c
7 * Copyright (C) 2012 Freescale Semiconductor, Inc.
11 #include <linux/list.h>
13 #include <asm/arch/iomux-mx53.h>
15 #include <ipu_pixfmt.h>
17 #define CX9020_DVI_PWD IMX_GPIO_NR(6, 1)
19 static struct fb_videomode const vga_640x480 = {
20 .name = "VESA_VGA_640x480",
24 .pixclock = 39721, /* picosecond (25.175 MHz) */
32 .vmode = FB_VMODE_NONINTERLACED
35 void setup_iomux_lcd(void)
38 imx_iomux_v3_setup_pad(MX53_PAD_CSI0_DAT15__GPIO6_1);
39 gpio_direction_output(CX9020_DVI_PWD, 1);
42 int board_video_skip(void)
44 const int ret = ipuv3_fb_init(&vga_640x480, 0, IPU_PIX_FMT_RGB24);
46 printf("VESA VG 640x480 cannot be configured: %d\n", ret);