This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am3352的lcd在24bpp颜色问题

Other Parts Discussed in Thread: AM3352

目前存在的问题有:

AM3352在uboot选择设置颜色为DISPC_PIXELFORMAT_RGB24

在内核阶段配置为24bpp

但是在横屏以及竖屏情况下出现红蓝反了的情况,即RGB-àBGR

 

但是当我修改da8xx_fb.c文件的

static int fb_check_var(struct fb_var_screeninfo *var,

                            struct fb_info *info)函数后

 

case 24:

                   //var->red.offset = 16;

                   var->red.offset = 0;

                   var->red.length = 8;

                   var->green.offset = 8;

                   var->green.length = 8;

//var->blue.offset = 0;

                   var->blue.offset = 16;

                   var->blue.length = 8;

                   break;

即可在横屏正常显示红蓝颜色且显示正确;但是竖屏依旧是RGB变成了BGR,请给与技术支