From 59d80bf180c39e4e83ec23654dc17ce514c88208 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Wed, 21 Sep 2005 15:24:52 +0200 Subject: Fix computation of framebuffer palette for 8bpp LCD bitmaps Patch by Francesco Mandracci, 16 Sep 2005 diff --git a/CHANGELOG b/CHANGELOG index 1b47ce4..54420fc 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ Changes for U-Boot 1.1.4: ====================================================================== +* Fix computation of framebuffer palette for 8bpp LCD bitmaps + Patch by Francesco Mandracci, 16 Sep 2005 + * Update configuration for INKA4x0 board * Update configuration for PM854 board diff --git a/common/lcd.c b/common/lcd.c index a85599d..7bf7a63 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -638,9 +638,8 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y) bmp_color_table_entry_t cte = bmp->color_table[i]; ushort colreg = ( ((cte.red) << 8) & 0xf800) | - ( ((cte.green) << 4) & 0x07e0) | - ( (cte.blue) & 0x001f) ; - + ( ((cte.green) << 3) & 0x07e0) | + ( ((cte.blue) >> 3) & 0x001f) ; #ifdef CFG_INVERT_COLORS *cmap = 0xffff - colreg; #else -- cgit v0.10.2 From 8b4c9e7c144397f483d23c002dcd9c59ff7c2395 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Wed, 21 Sep 2005 15:31:25 +0200 Subject: Fix bug in auto_update (trab board) Patch by Martin Krause, 16 Sep 2005 diff --git a/CHANGELOG b/CHANGELOG index 54420fc..909c416 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ Changes for U-Boot 1.1.4: ====================================================================== +* Fix bug in auto_update (trab board) + Patch by Martin Krause, 16 Sep 2005 + * Fix computation of framebuffer palette for 8bpp LCD bitmaps Patch by Francesco Mandracci, 16 Sep 2005 diff --git a/board/trab/auto_update.c b/board/trab/auto_update.c index 0399fe8..b25928c 100644 --- a/board/trab/auto_update.c +++ b/board/trab/auto_update.c @@ -296,7 +296,7 @@ au_check_header_valid(int idx, long nbytes) /* recycle checksum */ checksum = ntohl(hdr->ih_size); /* for kernel and app the image header must also fit into flash */ - if (idx != IDX_DISK) + if ((idx != IDX_DISK) && (idx != IDX_FIRMWARE)) checksum += sizeof(*hdr); /* check the size does not exceed space in flash. HUSH scripts */ /* all have ausize[] set to 0 */ -- cgit v0.10.2