i.MX Framebuffer queries

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

i.MX Framebuffer queries

1,525 次查看
positron
Contributor I

I'm using a mx53 QSB along with a TFT touch panel.

When going thro the imxfb.h under arch/arm/plat-mxc/include/mach/imxfb.h

I notice this structure.

struct imx_fb_videomode {
    struct fb_videomode mode;
    u32 pcr;
    unsigned char    bpp;
};

What does this pcr and bpp symbolize? I'm totally new to framebuffers and any pointers on this would be appreciated.

Thanks

标记 (2)
0 项奖励
回复
3 回复数

1,336 次查看
KursadOney
NXP Employee
NXP Employee

I think those values depend on your display. The user's manual for your display might have them listed. I'd start with some basic harmless values and modify if things look distorted or out of place. The link I put in my original reply goes over those a little bit too. Look for Panel Configuration Register. Older i.mx manual (maybe mx21?) might have more info.

0 项奖励
回复

1,336 次查看
positron
Contributor I

Thanks Kursad. I'll have a look at the attachment. Also I wanted to know on what pcr takes. I see some cryptic hex values all around. There is no where, it is explained why. Any ideas to find out the one for my display?

(One can see the pcr values in latest kernel sources)

0 项奖励
回复

1,336 次查看
KursadOney
NXP Employee
NXP Employee

bpp is bits per pixel.

It looks like pcr comes from here: http://cache.freescale.com/files/32bit/doc/app_note/AN2868.pdf and is for "panel configuration register". This name does not appear in the mx53 manual though so it's either renamed or not exactly used for mx53. I'm not sure.

0 项奖励
回复