Skip to content

Commit

Permalink
gxt4500: fix 16bpp 565 mode
Browse files Browse the repository at this point in the history
Fix wrong colors in 16bpp 565 mode.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Ondrej Zary authored and Tomi Valkeinen committed Oct 8, 2015
1 parent 031e37f commit 21d4479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/fbdev/gxt4500.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ static int gxt4500_setcolreg(unsigned int reg, unsigned int red,
u32 val = reg;
switch (par->pixfmt) {
case DFA_PIX_16BIT_565:
val |= (reg << 11) | (reg << 6);
val |= (reg << 11) | (reg << 5);
break;
case DFA_PIX_16BIT_1555:
val |= (reg << 10) | (reg << 5);
Expand Down

0 comments on commit 21d4479

Please sign in to comment.