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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

6,212 次查看
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,
    },
};

标记 (1)
0 项奖励
回复
1 回复

1,583 次查看
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 项奖励
回复