]> git.sur5r.net Git - u-boot/commitdiff
nitrogen6x: display: add svga display (800x600)
authorEric Nelson <eric.nelson@boundarydevices.com>
Thu, 2 Oct 2014 19:16:36 +0000 (12:16 -0700)
committerStefano Babic <sbabic@denx.de>
Mon, 6 Oct 2014 15:57:22 +0000 (17:57 +0200)
Add support for 800x600 18-bit RGB displays using VESA GTF timings.

No auto-detection is supported, so you must configure this panel
manually through the 'panel' environment variable:

        U-Boot > setenv panel svga
        U-Boot > saveenv && reset

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
board/boundary/nitrogen6x/nitrogen6x.c

index be2a41f1a4e1b49f896f7be7292c1653cf5c3ef9..ccbb9b7e2990203d4f6b9f59dbbca90d9a725569 100644 (file)
@@ -633,6 +633,26 @@ struct display_info_t const displays[] = {{
                .vsync_len      = 7,
                .sync           = 0x40000002,
                .vmode          = FB_VMODE_NONINTERLACED
+} }, {
+       .bus    = 0,
+       .addr   = 0,
+       .pixfmt = IPU_PIX_FMT_RGB666,
+       .detect = NULL,
+       .enable = enable_rgb,
+       .mode   = {
+               .name           = "svga",
+               .refresh        = 60,
+               .xres           = 800,
+               .yres           = 600,
+               .pixclock       = 15385,
+               .left_margin    = 220,
+               .right_margin   = 40,
+               .upper_margin   = 21,
+               .lower_margin   = 7,
+               .hsync_len      = 60,
+               .vsync_len      = 10,
+               .sync           = 0,
+               .vmode          = FB_VMODE_NONINTERLACED
 } }, {
        .bus    = 2,
        .addr   = 0x48,