[U-Boot-Users] [PATCH] 16bpp test_pattern()

Rodolfo Giometti giometti at linux.it
Wed Jul 12 10:23:10 CEST 2006


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);


More information about the U-Boot mailing list