]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
lcd: Fix build error with CONFIG_LCD_BMP_RLE8
authorSimon Glass <sjg@chromium.org>
Wed, 15 Oct 2014 10:53:04 +0000 (04:53 -0600)
committerAnatolij Gustschin <agust@denx.de>
Thu, 16 Oct 2014 07:58:24 +0000 (09:58 +0200)
Add a block to avoid a build error with the variable declaration.
Enable the option on sandbox to prevent an error being introduced in
future.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/lcd.c
include/configs/sandbox.h

index 217ec9dbd2e9ec3cefdaea4a63e5be2725b445dc..689d30eb25c9ad898237c92bd7401bfea0a7976b 100644 (file)
@@ -1023,7 +1023,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)
 
        switch (bmp_bpix) {
        case 1: /* pass through */
-       case 8:
+       case 8: {
 #ifdef CONFIG_LCD_BMP_RLE8
                u32 compression = get_unaligned_le32(&bmp->header.compression);
                if (compression == BMP_BI_RLE8) {
@@ -1056,7 +1056,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)
                        fb -= byte_width + lcd_line_length;
                }
                break;
-
+       }
 #if defined(CONFIG_BMP_16BPP)
        case 16:
                for (i = 0; i < height; ++i) {
index 69726432a3c922a467b55495c31d01d831b069cb..022629f522e1630df0a1d4fc954bd24ff639e559 100644 (file)
 #define CONFIG_CONSOLE_MUX
 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
 #define LCD_BPP                        LCD_COLOR16
+#define CONFIG_LCD_BMP_RLE8
 
 #define CONFIG_CROS_EC_KEYB
 #define CONFIG_KEYBOARD