[U-Boot-Users] [PATCH] VIDEO_FB_LITTLE_ENDIAN name confusion
Andrew Dyer
amdyer at gmail.com
Mon Apr 16 19:09:14 CEST 2007
I've noticed that VIDEO_FB_LITTLE_ENDIAN in drivers/cfb_console.c is
not really well named. What it does is swap bytes around if the frame
buffer has a /different/ endianness from the host. If you start with
a little endian host and frame buffer and define
VIDEO_FB_LITTLE_ENDIAN the drawn colors get incorrectly byte swapped.
the attached patch changes VIDEO_FB_LITTLE_ENDIAN to
VIDEO_FB_OTHER_ENDIAN to make it clearer what it does.
Signed-off-by: Andrew Dyer <amdyer at gmail.com>
--
Hardware, n.:
The parts of a computer system that can be kicked.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-cfb-little-endian.patch
Type: text/x-diff
Size: 3101 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070416/bb4aa02c/attachment.patch
More information about the U-Boot
mailing list