Damian Hobson-Garcia 53b5031430 fbdev: sh_mobile_lcdc: Add YUV framebuffer support
Supports YCbCr420sp, YCbCr422sp, and YCbCr44sp, formats
(bpp = 12, 16, and 24) respectively.

When double-buffering both Y planes appear before the C planes (Y-Y-C-C),
as opposed to  Y-C-Y-C.

Set .nonstd in struct sh_mobile_lcdc_chan_cfg to enable YUV mode, and use
.bpp to distiguish between the 3 modes.
The value of .nonstd is copied to bits 16-31 of LDDFR in the LCDC and
should be set accordingly.
.nonstd must be set to 0 for RGB mode.

Due to the encoding of YUV data, the framebuffer will clear to green
instead of black.

In YUV 420 mode, panning is only possible in 2 line increments.
Additionally in YUV 420 mode the vertical resolution of the framebuffer
must be an even number.

Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2011-03-16 17:27:10 +09:00
..
2010-10-15 15:53:27 +02:00
2010-12-22 18:57:02 +01:00
2010-12-22 12:57:27 +09:00
2010-08-09 11:25:17 +02:00
2010-08-09 11:25:17 +02:00
2009-01-12 20:56:32 +01:00
2008-07-24 10:47:34 -07:00
2009-12-16 07:20:04 -08:00
2010-05-03 15:42:58 +02:00
2009-05-06 16:36:10 -07:00
2011-01-06 15:48:13 +09:00
2010-05-25 08:07:09 -07:00
2010-02-27 18:31:16 +01:00
2010-02-27 18:31:14 +01:00
2011-01-12 14:57:52 +09:00
2009-01-06 15:59:27 -08:00
2010-03-12 15:52:34 -08:00
2009-01-06 15:59:27 -08:00
2010-12-21 01:05:43 +09:00
2010-12-21 01:05:43 +09:00
2010-05-25 08:07:09 -07:00
2010-11-01 15:38:34 -04:00
2010-06-16 18:05:05 +02:00
2010-02-27 18:31:13 +01:00
2010-02-27 18:31:13 +01:00
2010-08-16 15:14:03 +02:00
2010-05-25 08:07:08 -07:00
2010-05-25 08:07:08 -07:00