T113 板子显示了,但是 红色 与 蓝色 交错了。 请问要如何调软件纠正?
多谢指导!!!
离线
借帖子问一下,nuc972的rgb如何整组调换?我也是为了方便走线将RGB顺序画成了GBG。
看了nuc972 datasheet的lcd的DEVICE_CONTROL寄存器里的17,18位好像和rgb有关。
[18:17]
[LCD_ODD :
SEL_ODD]
Control LCD Line Data Out
00 = First line data is RGB, second line data is GBR.
01 = First line data is BGR, second line data is RBG.
10 = First line data is GBR, second line data is RGB.
11 = First line data is RBG, second line data is BGR.
但是不明白什么是first line,什么是second line?
在牛卧堂论坛问过,有人回复说是nuc972有两个framebuffer.
我修改buildroot/output/build/linux-master/drivers/video的nuc970fb.c文件里nuc970fb_activate_var()函数里的这部分:
fbi->regs.lcd_device_ctrl = ((fbi->regs.lcd_device_ctrl & 0xFFF9FFFF) | 0x00020000);
writel(fbi->regs.lcd_device_ctrl, regs + REG_LCM_DEV_CTRL);
分别试过0x00020000、0x00040000、0x00060000,都没有效果。
离线