]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/lcd_simplefb.c
karo: bootce: suppress mtdparts related error message when CMD_MTDPARTS is not set
[karo-tx-uboot.git] / common / lcd_simplefb.c
index 8db2adde016f9396b5a7794a2de1453de711c057..2ba00f6d34c040d81c192636ba8df26a4b5a30d8 100644 (file)
@@ -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