aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/psplash
diff options
context:
space:
mode:
authorMarco Cavallini <m.cavallini@koansoftware.com>2011-01-20 15:30:02 +0100
committerMarco Cavallini <m.cavallini@koansoftware.com>2011-01-20 15:32:38 +0100
commitdc63b49ec34b4d319d7cea73ad9ef1cb62279427 (patch)
treefcbd8a9f483ff190b004580d0f21b3d4dedcf655 /recipes/psplash
parent8c448a064e64665d5fdab15813b3ad3c70800028 (diff)
downloadopenembedded-dc63b49ec34b4d319d7cea73ad9ef1cb62279427.tar.gz
psplash-24bpp-BGR666.patch: psplash patch to support 24bpp BGR666
Diffstat (limited to 'recipes/psplash')
-rw-r--r--recipes/psplash/files/psplash-24bpp-BGR666.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes/psplash/files/psplash-24bpp-BGR666.patch b/recipes/psplash/files/psplash-24bpp-BGR666.patch
new file mode 100644
index 0000000000..102f71b0fd
--- /dev/null
+++ b/recipes/psplash/files/psplash-24bpp-BGR666.patch
@@ -0,0 +1,25 @@
+--- a/psplash-fb.c 2011-01-20 15:04:15.000000000 +0100
++++ b/psplash-fb.c 2011-01-20 15:03:50.000000000 +0100
+@@ -3,6 +3,10 @@
+ *
+ * Copyright (c) 2006 Matthew Allum <mallum@o-hand.com>
+ *
++ * Modifications:
++ * Jan-2011 - Marco Cavallini <m.cavallini@koansoftware.com>
++ * added case 24bpp mode BGR666 for PXA270
++ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+@@ -339,6 +343,11 @@ psplash_fb_plot_pixel (PSplashFB *fb,
+ | ((green >> (8 - fb->green_length)) << fb->green_offset)
+ | ((blue >> (8 - fb->blue_length)) << fb->blue_offset);
+ break;
++ case 24: /* BGR666 */
++ *(fb->data + off) = (blue >> 2) | ((green & 0x0C) << 4);
++ *(fb->data + off + 1) = ((green & 0xF0) >> 4) | ((red & 0x3C) << 2);
++ *(fb->data + off + 2) = (red & 0xC0) >> 6;
++ break;
+ case 16:
+ *(volatile uint16_t *) (fb->data + off)
+ = ((red >> (8 - fb->red_length)) << fb->red_offset)