video: tegra: Scale colors in pseudopalette
authorRobert Morell <rmorell@nvidia.com>
Sat, 20 Nov 2010 02:55:51 +0000 (18:55 -0800)
committerErik Gilling <konkers@android.com>
Sat, 20 Nov 2010 03:19:25 +0000 (19:19 -0800)
commitd340f9224dbf9be5d597c18222073c9d328b3473
tree813a5b4b21a92002cfd45e0fd37d14117750bd7c
parenta60ea58ebe901e3d61de0b31edcadd13dc61d719
video: tegra: Scale colors in pseudopalette

This fixes incorrect colors drawn by clients such as fbconsole.  As
described by skeletonfb's fb_setcolreg: "The values supplied have a 16
bit magnitude which needs to be scaled in this function for the
hardware."

Tested with both r8g8b8 and r5g6b5 pixel depths and fbconsole.

Change-Id: Ie3c3579502ddab8843a8a4dc7049c6efaa5d0ac1
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Acked-by: Erik Gilling <konkers@android.com>
drivers/video/tegra/fb.c