From: Rodolfo Giometti Date: Wed, 12 Jul 2006 10:23:10 +0200 Subject: [U-Boot-Users] [PATCH] 16bpp test_pattern() Message-ID: <20060712082310.GC17240@gundam.enneenne.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, this little patch adds 16bpp support to test_pattern() function. Ciao, Rodolfo -- GNU/Linux Solutions e-mail: giometti at enneenne.com Linux Device Driver giometti at gnudd.com Embedded Systems giometti at linux.it UNIX programming phone: +39 349 2432127 -------------- next part -------------- diff --git a/common/lcd.c b/common/lcd.c index 0be1912..9d00585 100644 --- a/common/lcd.c +++ b/common/lcd.c @@ -317,7 +317,11 @@ static void test_pattern (void) ushort v_step = (v_max + N_BLK_VERT - 1) / N_BLK_VERT; ushort h_step = (h_max + N_BLK_HOR - 1) / N_BLK_HOR; ushort v, h; +#if LCD_BPP == LCD_COLOR16 + ushort *pix = (ushort *)lcd_base; +#else uchar *pix = (uchar *)lcd_base; +#endif printf ("[LCD] Test Pattern: %d x %d [%d x %d]\n", h_max, v_max, h_step, v_step);