summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorHannes Petermaier <oe5hpm@oevsv.at>2015-04-25 00:30:21 +0200
committerAnatolij Gustschin <agust@denx.de>2015-07-23 18:10:58 +0200
commitde934b4158091d544f2c82dce238cde8a42dc46a (patch)
tree2296002236b3b8c66daefddfdbd9bb118919b079 /common
parentb217c89e8565ade3aaa9f74c33c93236bf151187 (diff)
downloadtalos-obmc-uboot-de934b4158091d544f2c82dce238cde8a42dc46a.tar.gz
talos-obmc-uboot-de934b4158091d544f2c82dce238cde8a42dc46a.zip
common/lcd_simplefb: Add support for 32bit organized framebuffers
Signed-off-by: Hannes Petermaier <oe5hpm@oevsv.at>
Diffstat (limited to 'common')
-rw-r--r--common/lcd_simplefb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/lcd_simplefb.c b/common/lcd_simplefb.c
index 8db2adde01..2ba00f6d34 100644
--- a/common/lcd_simplefb.c
+++ b/common/lcd_simplefb.c
@@ -16,11 +16,14 @@ DECLARE_GLOBAL_DATA_PTR;
static int lcd_dt_simplefb_configure_node(void *blob, int off)
{
-#if LCD_BPP == LCD_COLOR16
int vl_col = lcd_get_pixel_width();
int vl_row = lcd_get_pixel_height();
+#if LCD_BPP == LCD_COLOR16
return fdt_setup_simplefb_node(blob, off, gd->fb_base, vl_col, vl_row,
vl_col * 2, "r5g6b5");
+#elif LCD_BPP == LCD_COLOR32
+ return fdt_setup_simplefb_node(blob, off, gd->fb_base, vl_col, vl_row,
+ vl_col * 4, "a8r8g8b8");
#else
return -1;
#endif
OpenPOWER on IntegriCloud