lcd: fix the color testpattern in 16bit mode
authorAndreas Neubacher <neubacher.andreas@gmail.com>
Thu, 21 Jan 2016 12:06:32 +0000 (13:06 +0100)
committerAnatolij Gustschin <agust@denx.de>
Sat, 23 Jan 2016 23:38:40 +0000 (00:38 +0100)
commite32951b525c5cd67aece0dffb7d4012b1567dcaf
treed8512bae6be735e3ff089ee66d40d77339c7b77b
parent913d1be20801c3fed3dd1e832d3bf5bdde159f32
lcd: fix the color testpattern in 16bit mode

The testpattern of the lcd was only working in 8bit mode(2x3 tiles in
different colors). With this patch now 8bit and 16bit is supported.
In 16bit mode there are 2x4 tiles in different colors.
The number of LCD-colors is defined in the include/configs/<boardfile>.h

Signed-off-by: Andreas Neubacher <neubacher.andreas@gmail.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
common/lcd.c
include/lcd.h