Hello,

I'm working with TMS320C6A8168 processor and Android Linux kernel provided by Gingerbread devkit 2.0. We developed pcb with wrong lcd connection to VOUT0 port (rgb, 6 bits/color, rgb signals are shifted and signal of most significant bit of each color are now connected to 7th bit of each color on video port). 

So I tried 24bit mode (rgb888) and tried to remap colors in ti81xxfb driver:

static int ti81xxfb_setcmap(struct fb_cmap *cmap, struct fb_info *fbi)

{

...

palette[i] =

(((*red++) & TI81XXFB_CLUT_MASK & 0xFC) << 22 |

(((*green++) & TI81XXFB_CLUT_MASK & 0xFC) << 14) |

(((*blue++) & TI81XXFB_CLUT_MASK & 0xFC) << 6) |

(trans & TI81XXFB_CLUT_MASK);

index++;

...

}

and it didn't produce any effect.

Also, i tried remap colors in user-space  program(just put zeros in r,g,b arrays of struct fb_var_screeinfo and used FBIOPUT_VSCREENINFO). That way didn't seem to work as well as the first one, colors were same as colors in normal mode.

So I have a question: Is there any possibility to shift color bits?

Thanks.