Linux Framebuffer driver: Calculate Pixel Clock for struct fb_videomode -blog archive

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linux Framebuffer driver: Calculate Pixel Clock for struct fb_videomode -blog archive

5,984 Views
JackyAtFreescal
Senior Contributor II

#define REFRESH 60
#define XRES 240
#define YRES 320
#define LEFT_M 2
#define RIGHT_M 2
#define UPPER_M 0
#define LOWER_M 0
#define HSYNC_LEN 4
#define VSYNC_LEN 4
#define PIXCLOCK (1e12/((XRES+LEFT_M+RIGHT_M+HSYNC_LEN)*\(YRES+UPPER_M+LOWER_M+VSYNC_LEN)*REFRESH))

static struct fb_videomode video_modes[] = {
    {
     "MyVideoMode", REFRESH, XRES, YRES, PIXCLOCK, LEFT_M, RIGHT_M, UPPER_M, LOWER_M, HSYNC_LEN, VSYNC_LEN,
     0, FB_VMODE_NONINTERLACED, 0,
    },
};

Tags (1)
0 Kudos
Reply
1 Reply

1,355 Views
mbp
Contributor V

Thanks Jacky,

However your reply appears diametrically opposed to this post:

Re: mx53 fb_videomodes for custom lcd

Please clarify - I'm running into odd pixclock issues and cannot seem to get to the bottom of...

thanks,

mike

0 Kudos
Reply