Skip to contentSkip to conversation

VIDEO_FB_LITTLE_ENDIAN name confusion

PATCH New DENX Support System 1 participant 1 message Apr 16, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 VIDEO_FB_LITTLE_ENDIAN name confusion

Hello list,

inside the automatic U-Boot patch tracking system a new ticket [DNX#2007041642000023] was created:

<snip>

Quoted 6 lines

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.

Quoted 8 lines

the attached patch changes VIDEO_FB_LITTLE_ENDIAN to VIDEO_FB_OTHER_ENDIAN to make it clearer what it does.

Signature · 2 lines
Hardware, n.:
        The parts of a computer system that can be kicked.

</snip>

Your U-Boot support team