Problem to set fb timings for a new display

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I'm using Beagleboard clone with TFT display connected. The display is 3.5"
320x240.

I created a new driver for this display for the kernel 2.6.32 (beagleboard
BSP) obtained from the OE environment. When u-boot starts I set the
following variables:

> setenv defaultdisplay pt35
> setenv dvimode 320x240MR-16@60

All I need is to have timings specified in my driver:

static struct omap_video_timings pt35_timings = {
        .x_res = 320,
        .y_res = 240,

        .pixel_clock    = 8000,

        .hsw            = 30,
        .hfp            = 40,
        .hbp            = 0,

        .vsw            = 5,
        .vfp            = 13,
        .vbp            = 4,
};

But with dvimode set to 320x240MR-16@60 an image is rather good, but is
shifted a little. As I understand the timings is calculated by CVT and I
can't change them.
If I set dvimode to 320x240-16@60 then I get timings from
drivers/video/modedb.c:
}, {
        /* 320x240 @ 60 Hz, 31.5 kHz hsync, 4:3 aspect ratio */
        NULL, 60, 320, 240, 79440, 16, 16, 16, 5, 48, 1,
        0, FB_VMODE_DOUBLE
    }, {

I want to set margins (porches) for the image but don't know how. Please
advise!

best regards,
Max
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux